Thank you that seems to have pointed me in the direction. However, now when I try to use my module, none of the transitive dependencies are resolved.
Here is my dependee module's pom: <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>dependee</artifactId> <packaging>jar</packaging> <version>0.1</version> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>oracle-jdbc</artifactId> <version>11.2.0.2.0</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.context</artifactId> <version>3.0.5.RELEASE</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.core</artifactId> <version>3.0.5.RELEASE</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>org.springframework.jdbc</artifactId> <version>3.0.5.RELEASE</version> <scope>runtime</scope> </dependency> </dependencies> I uploaded the artifact and the pom to archiva 1.3.1 using the admin page. I don't know how maven scopes map to ivy configurations, or if that applies here. My depender module's dependencies are: <dependency org="org.apache.camel" name="camel-core" rev="2.6.0"/> <dependency org="com.example" name="dependee" rev="0.1"/> In my ivy cache, an ivy.xml file has been created for my dependee module that lists no dependencies: <ivy-module version="2.0"> <info organisation="com.example" module="dependee" revision="0.1" status="release" publication="20110214105807" default="true" /> <configurations> <conf name="default" visibility="public"/> </configurations> <publications> <artifact name="dependee" type="jar" ext="jar" conf="default"/> </publications> </ivy-module> How can I cause the transitive dependencies to be resolved in the depender module? Kendall On Sun, 2011-02-13 at 13:40 -0800, Maarten Coene wrote: > If you don't specify a mapping from your configurations to maven2 scopes, all > dependencies are marked as optional. > Try something like: > > <ivy:makepom ivyfile="ivy.xml" pomfile="${dist.dir}/pom.xml"> > <mapping conf="default" scope="compile"/> > </ivy:makepom> > > Maarten > > > ----- Original Message ---- > From: Kendall Shaw <ks...@oreilly.com> > To: ivy-user@ant.apache.org > Sent: Sun, February 13, 2011 9:28:33 PM > Subject: makepom makes all dependencies optional > > Hi, > > I hope I'm just missing something. Here are the dependencies from my > ivy.xml: > > <dependency org="com.oracle" > name="oracle-jdbc" > rev="11.2.0.2.0"/> > <dependency org="net.sourceforge.cglib" > name="com.springsource.net.sf.cglib" > rev="2.2.0"/> > <dependency org="org.springframework" > name="org.springframework.asm" > rev="3.0.5.RELEASE"/> > <dependency org="org.springframework" > name="org.springframework.beans" > rev="3.0.5.RELEASE" > conf="default->compile"/> > <dependency org="org.springframework" > name="org.springframework.context" > rev="3.0.5.RELEASE" > conf="default->compile"/> > <dependency org="org.springframework" > name="org.springframework.core" > rev="3.0.5.RELEASE" > conf="default->compile"/> > <dependency org="org.springframework" > name="org.springframework.expression" > rev="3.0.5.RELEASE"/> > <dependency org="org.springframework" > name="org.springframework.jdbc" > rev="3.0.5.RELEASE"/> > > Here is my invocation of makepom: > > <ivy:makepom ivyfile="ivy.xml" pomfile="${dist.dir}/pom.xml"/> > > The result is that every dependency is optional. > > If I add dependency child elements specifying optional="false" for each, > it includes each dependency twice, once optional and once not. I suppose > that that makes sense, because the dependency elements specify > additional dependencies. > > Is there a way for me make to make the dependencies not be optional, > other than post processing the pom.xml? > > Kendall > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front