You need to provide a type for each dependencies. We have discussed this many times on the user list.
Cheers, Stéphane On 11/30/05, Tim Kettler <[EMAIL PROTECTED]> wrote: > > Thanks for the quick replies. It's for M2. > > Ok, I pulled the latest trunks from the following locations: > > https://svn.apache.org/reos/asf/maven/components/trunk > https://svn.apache.org/reos/asf/maven/plugins/trunk > https://svn.apache.org/reos/asf/maven/sandbox/plugins > > I then bootstrapped the maven core (see my separate mail for this) and > did an 'mvn install' in the plugins and sandbox directories. > > > When building my project I get the following error: > > [INFO] > > ---------------------------------------------------------------------------- > [INFO] Building Unnamed - test:test-ear:ear:1.0-SNAPSHOT > [INFO] task-segment: [package] > [INFO] > > ---------------------------------------------------------------------------- > [INFO] [ear:generate-application-xml] > [INFO] > > ---------------------------------------------------------------------------- > [ERROR] BUILD FAILURE > [INFO] > > ---------------------------------------------------------------------------- > [INFO] Artifact[test:test-ejb:ejb] is not a dependency of the project. > [INFO] > > ---------------------------------------------------------------------------- > [INFO] For more information, run Maven with the -e switch > [INFO] > > ---------------------------------------------------------------------------- > [INFO] Total time: 4 seconds > [INFO] Finished at: Wed Nov 30 13:21:59 CET 2005 > [INFO] Final Memory: 4M/7M > [INFO] > > ---------------------------------------------------------------------------- > > > The problem is, that it treats the ejb module as ejb and not ejb3. This > is the corresponding 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> > > <parent> > <groupId>test</groupId> > <artifactId>test-project</artifactId> > <version>1.0-SNAPSHOT</version> > </parent> > > <groupId>test</groupId> > <artifactId>test-ear</artifactId> > <version>1.0-SNAPSHOT</version> > > <packaging>ear</packaging> > > <dependencies> > > <dependency> > <groupId>test</groupId> > <artifactId>test-ejb</artifactId> > <version>1.0-SNAPSHOT</version> > <type>ejb3</type> > </dependency> > > </dependencies> > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > <modules> > <ejbModule> > <groupId>test</groupId> > <artifactId>test-ejb</artifactId> > </ejbModule> > </modules> > </configuration> > </plugin> > </plugins> > </build> > </project> > > > Stephane Nicoll schrieb: > > If M2: It's fixed in SVN, you need to rebuild M2 ear plugin. > > > > Regards, > > Stéphane > > > > On 11/30/05, Tim Kettler <[EMAIL PROTECTED]> wrote: > > > >>Hi, > >> > >>currently the maven-ear-plugin doesn't support ejb3 modules because it > >>expects artifacts of type *.ejb. For my local use I created a new > >>Ejb3Module class with the only difference to EjbModule.java that the > >>getType() method returns "ejb3". > >> > >>If that solution is ok for you I will create a patch and submit it to > >>jira. > >> > >>-Tim > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > -- > > .::You're welcome ::. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- .::You're welcome ::.