Hello All. I am having an issue in attempting to set up a consolidated dependencies POM.
I am trying to set up a single POM that represents the DB2 Universal Drivers, which for me, basically consists of three different jars. Each of the three jars have been added into the repo and are working correctly. Everything works in my primary POM if I do this: <dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>db2jcc</artifactId> <version>V8-FP15</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>db2jcc_license_cisuz</artifactId> <version>V8-FP15</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>db2jcc_license_cu</artifactId> <version>V8-FP15</version> <scope>runtime</scope> </dependency> I have set up a library POM, that is referenced like this: <dependency> <groupId>com.ibm.db2.jcc</groupId> <artifactId>library</artifactId> <version>V8-FP15</version> <scope>test</scope> <type>pom</type> </dependency> At this point it does not work. Interestingly enough, if I use the same library pom as a parent, it **DOES** work, which makes me think that everything in all of the POMs is actually correct. This is the parent section: <parent> <groupId>com.ibm.db2.jcc</groupId> <artifactId>library</artifactId> <version>V8-FP15</version> </parent> If I run mvn dependency:tree I get: (either as the three individual deps or as a parent) [INFO] ------------------------------------------------------------------------ [INFO] Building test [INFO] task-segment: [dependency:tree] [INFO] ------------------------------------------------------------------------ [INFO] [dependency:tree] [INFO] au.com.warpspeed.test:test:jar:1.0-SNAPSHOT [INFO] +- com.ibm.db2.jcc:db2jcc:jar:V8-FP15:test [INFO] +- com.ibm.db2.jcc:db2jcc_license_cisuz:jar:V8-FP15:test [INFO] +- com.ibm.db2.jcc:db2jcc_license_cu:jar:V8-FP15:test [INFO] +- junit:junit:jar:3.8.1:test [INFO] +- jdom:jdom:jar:1.0:compile [INFO] +- log4j:log4j:jar:1.2.14:compile [INFO] +- javax.servlet:servlet-api:jar:2.4:provided [INFO] +- jboss:jboss-j2ee:jar:4.0.2:compile [INFO] +- maven-plugins:maven-cobertura-plugin:jar:1.4:compile [INFO] | +- net.sourceforge.cobertura:cobertura:jar:1.9:compile [INFO] | | \- org.apache.ant:ant:jar:1.7.0:compile [INFO] | | \- org.apache.ant:ant-launcher:jar:1.7.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- asm:asm:jar:2.2.1:compile [INFO] | +- asm:asm-tree:jar:2.2.1:compile [INFO] | \- commons-jelly:commons-jelly-tags-log:jar:1.0:compile [INFO] +- javax.mail:mail:jar:1.4:compile [INFO] | \- javax.activation:activation:jar:1.1:compile [INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] +- au.com.warpspeed:kleinbottle:jar:0.1:test [INFO] +- Acme:Acme:jar:1.0:compile [INFO] \- com.javaexchange:dbConnectionBroker:jar:1.0:compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Tue Apr 08 03:56:02 GMT 2008 [INFO] Final Memory: 9M/17M [INFO] ------------------------------------------------------------------------ If I run the tree with the consolidated POM, I get: [INFO] ------------------------------------------------------------------------ [INFO] Building test [INFO] task-segment: [dependency:tree] [INFO] ------------------------------------------------------------------------ [INFO] [dependency:tree] [INFO] au.com.warpspeed.test:test:jar:1.0-SNAPSHOT [INFO] +- junit:junit:jar:3.8.1:test [INFO] +- jdom:jdom:jar:1.0:compile [INFO] +- log4j:log4j:jar:1.2.14:compile [INFO] +- javax.servlet:servlet-api:jar:2.4:provided [INFO] +- jboss:jboss-j2ee:jar:4.0.2:compile [INFO] +- maven-plugins:maven-cobertura-plugin:jar:1.4:compile [INFO] | +- net.sourceforge.cobertura:cobertura:jar:1.9:compile [INFO] | | \- org.apache.ant:ant:jar:1.7.0:compile [INFO] | | \- org.apache.ant:ant-launcher:jar:1.7.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- asm:asm:jar:2.2.1:compile [INFO] | +- asm:asm-tree:jar:2.2.1:compile [INFO] | \- commons-jelly:commons-jelly-tags-log:jar:1.0:compile [INFO] +- javax.mail:mail:jar:1.4:compile [INFO] | \- javax.activation:activation:jar:1.1:compile [INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:compile [INFO] +- au.com.warpspeed:kleinbottle:jar:0.1:test [INFO] +- Acme:Acme:jar:1.0:compile [INFO] +- com.javaexchange:dbConnectionBroker:jar:1.0:compile [INFO] \- com.ibm.db2.jcc:library:pom:V8-FP15:test [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9 seconds [INFO] Finished at: Tue Apr 08 05:08:31 GMT 2008 [INFO] Final Memory: 9M/17M [INFO] ------------------------------------------------------------------------ You can see that the library POM has been added, but it's dependencies are not. Is this a bug in Maven or have I done something really, really wierd? C:\TEMP\maven\test>mvn -v Maven version: 2.0.8 Java version: 1.5.0 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" C:\TEMP\maven\test>java -version java version "1.5.0_11" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode) -Chris ********************************************************************** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]