You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Conrad CRAMPTON PSE 52704 <co...@kent.pnn.police.uk> on 2010/05/19 18:13:48 UTC

Child dependencies listed in parent pom failure to download

Hi,
Very frustrating issue that been troubling me for a couple of days now.
I am trying to use JBoss Drools in a Maven project using the following
 
<dependency>
            <groupId>org.drools</groupId>
            <artifactId>drools</artifactId>
            <version>5.0.1</version>
            <type>pom</type>
  </dependency>
 
the repository http://repository.jboss.com/maven2/org/drools/ has all the necessary dependencies listed in the drools pom. There is no specific jar file for drools but the pom just lists all the other child module dependencies. My expectation is that including the dependency as above will download and include all the child dependencies. It doesn't though. All I get is the pom downloaded.
If I use the -X option I get this listed (abbreviated). Which appears to show the jars being referenced but not downloaded.
 
[DEBUG] Adding managed dependencies for org.drools:drools
[DEBUG]   org.drools:drools-api:jar:5.0.1
[DEBUG]   org.drools:drools-core:jar:5.0.1
[DEBUG]   org.drools:drools-core:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-compiler:jar:5.0.1
[DEBUG]   org.drools:drools-compiler:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-jsr94:jar:5.0.1
[DEBUG]   org.drools:drools-jsr94:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-templates:jar:5.0.1
[DEBUG]   org.drools:drools-templates:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-decisiontables:jar:5.0.1
[DEBUG]   org.drools:drools-decisiontables:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-process-task:jar:5.0.1
[DEBUG]   org.drools:drools-docs:jar:5.0.1
[DEBUG]   org.drools:drools-server:jar:5.0.1
[DEBUG]   org.drools:drools-ant:jar:5.0.1
[DEBUG]   org.drools:drools-ant:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-verifier:jar:5.0.1
[DEBUG]   org.drools:drools-verifier:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-server:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-repository:jar:5.0.1
[DEBUG]   org.drools:drools-repository:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-pipeline:jar:5.0.1
[DEBUG]   org.drools:drools-transformer-jaxb:jar:5.0.1
[DEBUG]   org.drools:drools-transformer-jxls:jar:5.0.1
[DEBUG]   org.drools:drools-transformer-smooks:jar:5.0.1
[DEBUG]   org.drools:drools-transformer-xstream:jar:5.0.1
[DEBUG]   org.drools:drools-messenger-jms:jar:5.0.1
[DEBUG]   org.drools:drools-guvnor:jar:5.0.1
[DEBUG]   org.drools:drools-guvnor:test-jar:tests:5.0.1:test
[DEBUG]   org.drools:drools-eclipse-plugin:jar:5.0.1
[DEBUG]   org.drools.solver:drools-solver-core:jar:5.0.1
[DEBUG]   org.drools.solver:drools-solver-examples:jar:5.0.1
[DEBUG]   com.thoughtworks.xstream:xstream:jar:1.3.1
[DEBUG]   xpp3:xpp3:jar:1.1.3.4.O
[DEBUG]   org.mvel:mvel2:jar:2.0.10
[DEBUG]   joda-time:joda-time:jar:1.6
[DEBUG]   org.antlr:antlr-runtime:jar:3.1.1
[DEBUG]   org.antlr:antlr:jar:3.1.1
[DEBUG]   org.eclipse.jdt:core:jar:3.4.2.v_883_R34x
[DEBUG]   janino:janino:jar:2.5.15
[DEBUG]   xerces:xercesImpl:jar:2.9.1
[DEBUG]   xml-apis:xml-apis:jar:2.0.2
[DEBUG]   jsr94:jsr94:jar:1.1
[DEBUG]   jsr94:jsr94-tck:jar:1.0.3
[DEBUG]   jsr94:jsr94-sigtest:jar:1.1
[DEBUG]   jexcelapi:jxl:jar:2.4.2
[DEBUG]   net.sf.jxls:jxls-reader:jar:0.9.6
[DEBUG]   jboss:jboss-remoting:jar:1.4.4
[DEBUG]   org.slf4j:slf4j-api:jar:1.5.0
[DEBUG]   org.slf4j:slf4j-log4j12:jar:1.5.0
[DEBUG]   log4j:log4j:jar:1.2.14
[DEBUG]   org.apache.jackrabbit:jackrabbit-core:jar:1.4.5
[DEBUG]   javax.jcr:jcr:jar:1.0
[DEBUG]   org.tmatesoft:svnkit:jar:1.1.2
[DEBUG]   hsqldb:hsqldb:jar:1.8.0.2
[DEBUG]   javax.servlet:servlet-api:jar:2.3:provided
[DEBUG]   com.google.gwt:gwt-servlet:jar:1.5.2
[DEBUG]   commons-fileupload:commons-fileupload:jar:1.2.1
[DEBUG]   commons-io:commons-io:jar:1.4
[DEBUG]   com.gwtext:gwtext:jar:2.0.5
[DEBUG]   foxtrot:foxtrot:jar:2.0
[DEBUG]   com.jgoodies:looks:jar:2.2.0
[DEBUG]   com.jgoodies:forms:jar:1.2.1
[DEBUG]   commons-lang:commons-lang:jar:2.3
[DEBUG]   org.apache.commons:commons-io:jar:1.3.2
[DEBUG]   org.jboss:jboss-vfs:jar:2.0.0.GA
[DEBUG]   org.drools:drools:pom:5.0.1:compile (selected for compile)
[DEBUG] Plugin dependencies for:
 
Can anyone help here as this is driving me nuts? I don't particularly want to download all of these individually and add to my archiva repository. (I don't know if this is relevant but I am using Archiva with a couple of proxy connectors to main maven repo and to JBoss repository).
 
Thanks
Conrad
 
 
Conrad Crampton


Software Development Manager
Force Headquarters
8 Edinburgh Square
Sutton Road
Maidstone
ME15 9BZ
01622 652885 (ext)
19-2885 (internal)
07972 004551  (mobile)
conrad.crampton@kent.pnn.police.uk

-- 
This email and any other accompanying document (s) contain information from Kent Police, which is confidential or privileged.  The information is intended to be for the exclusive use of the individual(s) or bodies to whom it is addressed. The content including any subsequent replies could be disclosable if relating to a criminal investigation or civil proceedings. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this email in error, please notify us immediately by contacting the sender or telephoning 01622 690690.

Re: Child dependencies listed in parent pom failure to download

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, May 19, 2010 at 12:13 PM, Conrad CRAMPTON PSE 52704
<co...@kent.pnn.police.uk> wrote:

> the repository http://repository.jboss.com/maven2/org/drools/ has all the necessary dependencies listed in the drools pom. There is no specific jar file for drools but the pom just lists all the other child module dependencies. My expectation is that including the dependency as above will download and include all the child dependencies. It doesn't though. All I get is the pom downloaded.

"child module dependencies" doesn't make sense.  Being listed as a
module is not the same as being listed as a dependency.  Modules are
for building, but they do not mean that if you depend on that pom, you
will get all the sub-modules as transitive dependencies.

I looked in the pom, and as the message says, they are listed as
_managed_ dependencies (in dependencyManagement).  That's for the
Drools build, not for consumers of it.

You probably want to declare a dependency on drools-core and some of
the others depending on what your project needs.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org