Hi, just a question?
didn't you use maven-jar-plugin for child1's artifact? Not sure but try setting in child1 manifest the cross dependency, should do the trick... beside this, have you checked by changing the scope of the dependencies: i.e.: --8<---- [child1's pom.xml] ---------------- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVers > > ion> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>child1</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > <name>child1</name> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.0</version> > </dependency> > > <dependency> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>child2</artifactId> > <version>1.0-SNAPSHOT</version> > *<scope>runtime</scope>* > > </dependency> > </dependencies> > </project> > --8<---------------------------------------- This way compiler should be happy because it just expects the dependency to be resolved later... hope this helps Regards -- Daniele De Francesco On Wed, Apr 23, 2008 at 12:35 PM, Martin Höller <[EMAIL PROTECTED]> wrote: > On Wednesday 23 April 2008 Thomas Darbois wrote: > > Can you show us your (simplified?) pom(s)? > > Sure. Here we go: > > --8<---- [parent's pom.xml] ---------------- > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>parent</artifactId> > <packaging>pom</packaging> > <version>1.0-SNAPSHOT</version> > <name>parent</name> > > <modules> > <module>child1</module> > <module>child2</module> > </modules> > </project> > --8<---------------------------------------- > > --8<---- [child1's pom.xml] ---------------- > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>child1</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > <name>child1</name> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.0</version> > </dependency> > > <dependency> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>child2</artifactId> > <version>1.0-SNAPSHOT</version> > </dependency> > </dependencies> > </project> > --8<---------------------------------------- > > --8<---- [child2's pom.xml] ---------------- > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>at.co.xss.mhtest.multimodule</groupId> > <artifactId>child2</artifactId> > <packaging>ejb</packaging> > <version>1.0-SNAPSHOT</version> > <name>child2</name> > > <build> > <plugins> > > <plugin> > <artifactId>maven-ejb-plugin</artifactId> > <configuration> > <ejbVersion>3.0</ejbVersion> > <generateClient>true</generateClient> > <archive> > <manifest> > <addClasspath>true</addClasspath> > </manifest> > </archive> > </configuration> > </plugin> > </plugins> > </build> > </project> > --8<---------------------------------------- > > - martin >
