[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [PATCH] Maven build for XMLBeans
From:       James Strachan <james_strachan () yahoo ! co ! uk>
Date:       2003-08-19 15:54:10
[Download RAW message or body]

I've attached the 2 files which if placed in the current source distro 
of XMLBeans will compile the code, make a jar, create binary/source 
distros & make and deploy the website including javadocs, clover test 
coverage reports, unit test case results, html-ized source code and so 
forth.

Basically I tried to use Maven to rebuild the jar to get around the 
classloader issue with xsdconfig files. However currently the source 
code depends on

* weblogic.xml.stream.* - is this going to be part of the source distro 
any time soon so we can build xmlbeans ourselves?

* javax.xml.namespace.QName - I wonder if this is available as source 
code with an ASF-compatible licence so we can include it in the source 
code for the build?

I guess these issues will be addressed as the code moves to Apache? In 
the meantime is there any chance of a new 1.0.1 release of XMLBeans 
with the classloader bug Tim found fixed?




["project.xml" (project.xml)]

<?xml version="1.0" encoding="ISO-8859-1"?>

<project>
  <pomVersion>3</pomVersion>
  <id>xmlbeans</id>
  <name>XMLBeans</name>
  <currentVersion>1.0.1-dev</currentVersion>
  <organization>
    <name>Apache Software Foundation</name>
    <url>http://xml.apache.org/</url>
    <logo>/images/logo.gif</logo>
  </organization>
  <inceptionYear>2003</inceptionYear>
  
<!-- soon use apache package  
  <package>org.apache.xmlbeans</package>
-->
  <package>com.bea</package>

  <logo>/images/xmlbeans.jpg</logo>
  
  <!-- Gump integration -->
  <gumpRepositoryId>xmlbeans</gumpRepositoryId>
  
  <description>Generates Java Beans from an XML schema.</description>
  <shortDescription>Generates Java Beans from an XML schema</shortDescription>
  <url>http://incubator.apache.org/projects/xmlbeans/</url>
  <issueTrackingUrl></issueTrackingUrl>
  <siteAddress>incubator.apache.org</siteAddress>
  <siteDirectory>/www/incubator.apache.org/projects/xmlbeans</siteDirectory>
  <distributionDirectory>/www/incubator.apache.org/builds/xmlbeans/</distributionDirectory>
  <repository>
    <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:xml-xmlbeans</connection>
  <developerConnection>scm:cvs:ext:${maven.username}@cvs.apache.org:/home/cvs:xml-xmlbeans</developerConnection>
  <url>http://cvs.apache.org/viewcvs/xml-xmlbeans/</url>
  </repository>
  
  <versions>
  </versions>
  <branches></branches>
  
  <mailingLists>
    <mailingList>
      <name>XMLBeans User List</name>
      <subscribe>xmlbeans-users-subscribe@xml.apache.org</subscribe>
      <unsubscribe>xmlbeans-users-unsubscribe@xml.apache.org</unsubscribe>
      <archive>http://www.mail-archive.com/xmlbeans-users@xml.apache.org/</archive>
    </mailingList>
    <mailingList>
      <name>XMLBeans Developer List</name>
      <subscribe>xmlbeans-dev-subscribe@xml.apache.org</subscribe>
      <unsubscribe>xmlbeans-dev-unsubscribe@xml.apache.org</unsubscribe>
      <archive>http://www.mail-archive.com/xmlbeans-dev@xml.apache.org/</archive>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <name>Eric</name>
      <id>eric</id>
      <email></email>
      <organization/>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>James Strachan</name>
      <email>jstrachan@apache.org</email>
    </contributor>
  </contributors>

  <licenses>
    <license>
      <name>The Apache Software License, Version 1.1</name>
      <url>http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-beans/LICENSE.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <dependencies>
    <dependency>
      <id>piccolo</id>
      <version>1.0.3</version>
      <url>http://piccolo.sourceforge.net/</url>
    </dependency>
    <dependency>
      <id>ant</id>
      <version>1.5.3-1</version>
      <url>http://jakarta.apache.org/ant/</url>
    </dependency>
  </dependencies>
  <build>
    <nagEmailAddress>xmlbeans-dev@xml.apache.org</nagEmailAddress>
    
<!-- should be this...     
    <sourceDirectory>${basedir}/src/java</sourceDirectory>
    <unitTestSourceDirectory>${basedir}/src/test/java</unitTestSourceDirectory>
-->
    <sourceDirectory>${basedir}/src</sourceDirectory>
    
    <unitTest>
      <includes>
        <include>**/*Test.java</include>
      </includes>
    </unitTest>
    <resources>
      <resource>
        <directory>${basedir}/src</directory>
        <includes>
          <include>*.xsd</include>
          <include>*.xsdconfig</include>
          <include>*.properties</include>
        </includes>
      </resource>
    </resources>
  </build>

  <reports>
    <!--
     |
     | These should all be completely self contained. You should be able
     | to generate each of them individually without needing the final
     | xdoc transformation.
     |
     | Each report plugin with it's POM and plugin.jelly logic should
     | contain everything needed to produced the report.
     |
    -->

    <report>maven-jdepend-plugin</report>
    <report>maven-checkstyle-plugin</report>
    <report>maven-changes-plugin</report>
    <report>maven-changelog-plugin</report>
    <report>maven-file-activity-plugin</report>
    <report>maven-developer-activity-plugin</report>
    <report>maven-javadoc-plugin</report>
    <report>maven-jxr-plugin</report>
    <report>maven-junit-report-plugin</report>
    <report>maven-tasklist-plugin</report>
    <report>maven-jellydoc-plugin</report>
    <report>maven-pmd-plugin</report>
    <report>maven-simian-plugin</report>
    <report>maven-faq-plugin</report>
  </reports>

</project>


["project.properties" (project.properties)]

maven.junit.fork=true

maven.compile.source=1.4
maven.compile.target=1.4
maven.compile.deprecation=true
maven.compile.debug=true
maven.compile.optimize=true



James
-------
http://radio.weblogs.com/0112098/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic