You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Behrens, Andrey" <An...@external.t-mobile.de> on 2007/02/07 14:59:09 UTC
Dependency to a pom file
Hello,
Can I use a parent artifact as a reference in a project pom?
For example a cut out from a test pom.xml:
<dependency>
<groupId>de.tmobile.cabu</groupId>
<artifactId>fom</artifactId>
<version>7.1</version>
</dependency>
"fom" is a parent artifact with a list of modules in its pom.xml. But
it seems that this wont work. It seems that maven expects a jar
artifact.
If I do something like that
<dependency>
<groupId>de.tmobile.cabu</groupId>
<artifactId>fom-module1</artifactId>
<version>7.1</version>
</dependency>
does it work. Is that behaviour correct or is there somewhere a bug?
Kindly Regards
Andrey
--
Andrey Behrens,
Mobil: +49-160-92755947
Phone: +49-228-936-36478
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Dependency to a pom file
Posted by "Nunn, Gerald" <Ge...@CIBC.com>.
Try setting the type to pom, i.e.
<dependency>
<groupId>de.tmobile.cabu</groupId>
<artifactId>fom</artifactId>
<version>7.1</version>
<type>pom</type>
</dependency>
This seems to work fine for me.
Cheers,
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org