[jboss-dev] Adding thirdparty libs to AS build
Kabir Khan
kabir.khan at jboss.com
Tue May 4 09:48:23 EDT 2010
I am trying to add org.jboss.classpool:jboss-classpool-jbosscl-as to the AS build by modifying component-matrix/pom.xml and build/build.xml (diffs shown at end) but am getting an error. Do I need to modify anything else? My local maven repository contains the expected files:
$ls ~/.m2/repository/org/jboss/classpool/jboss-classpool-jbosscl-as/1.0.0-SNAPSHOT/
jboss-classpool-jbosscl-as-1.0.0-20100504.115842-1-sources.jar
jboss-classpool-jbosscl-as-1.0.0-20100504.115842-1.jar
jboss-classpool-jbosscl-as-1.0.0-20100504.115842-1.pom
jboss-classpool-jbosscl-as-1.0.0-SNAPSHOT-sources.jar
jboss-classpool-jbosscl-as-1.0.0-SNAPSHOT.jar
jboss-classpool-jbosscl-as-1.0.0-SNAPSHOT.pom
maven-metadata-jboss-snapshots-repository.xml
maven-metadata-local.xml
The error is:
thirdparty:
[copy] Copying 132 files to /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/common/lib
[copy] Copying 1 file to /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/common/lib
[copy] Copying 1 file to /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/common/lib
[copy] Copying 1 file to /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/common/lib
[mkdir] Created dir: /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/server/all/lib
[copy] Copying 6 files to /Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/target/jboss-6.0.0-SNAPSHOT/server/all/lib
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
/Users/kabir/sourcecontrol/jbossas/KABIR_JAVASSIST_REFLECT/subversion/build/build.xml:2096: Reference org.jboss.classpool:jboss-classpool-jbosscl-as:jar not found.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 11 seconds
[INFO] Finished at: Tue May 04 13:55:11 BST 2010
[INFO] Final Memory: 185M/426M
[INFO] ------------------------------------------------------------------------
These are the changes I made:
$svn diff
Index: component-matrix/pom.xml
===================================================================
--- component-matrix/pom.xml (revision 104191)
+++ component-matrix/pom.xml (working copy)
@@ -91,7 +91,7 @@
<version.org.jboss.cache.core>3.2.1.GA</version.org.jboss.cache.core>
<version.org.jboss.cache.pojo>3.0.0.GA</version.org.jboss.cache.pojo>
<version.org.jboss.cl>2.2.0.Alpha4</version.org.jboss.cl>
- <version.org.jboss.classpool>1.0.0.Alpha5</version.org.jboss.classpool>
+ <version.org.jboss.classpool>1.0.0-SNAPSHOT</version.org.jboss.classpool>
<version.org.jboss.cluster.cache.jbc>2.2.0.Final</version.org.jboss.cluster.cache.jbc>
<version.org.jboss.cluster.cache.spi>2.1.0.Final</version.org.jboss.cluster.cache.spi>
<version.org.jboss.cluster.client>1.1.1.GA</version.org.jboss.cluster.client>
@@ -2158,6 +2158,22 @@
</dependency>
<dependency>
+ <groupId>org.jboss.classpool</groupId>
+ <artifactId>jboss-classpool-jbosscl-as</artifactId>
+ <version>${version.org.jboss.classpool}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.cluster</groupId>
<artifactId>jboss-ha-client</artifactId>
<version>${version.org.jboss.cluster.client}</version>
===================================================================
--- build/build.xml (revision 104190)
+++ build/build.xml (working copy)
@@ -2114,6 +2114,7 @@
<fileset refid="org.jboss.classpool:jboss-classpool:jar"/>
<fileset refid="org.jboss.classpool:jboss-classpool-scoped:jar"/>
<fileset refid="org.jboss.classpool:jboss-classpool-jbosscl:jar"/>
+ <fileset refid="org.jboss.classpool:jboss-classpool-jbosscl-as:jar"/>
<fileset refid="org.jboss:jboss-reflect:jar"/>
<fileset refid="org.jboss:jboss-mdr:jar"/>
<fileset refid="org.jboss.man:jboss-managed:jar"/>
More information about the jboss-development
mailing list