I don't use the SAR plugin but I think I understand the error message... It looks like your dependencies define the sar as <packaging>jboss-sar without a classifier... and then your EAR configuration says <classifier>jboss-sar without a packaging.
I'd assume one of those is wrong. My guess would be to change <classifier> to <packaging>. Wayne On 8/16/07, Steve Dobson <[EMAIL PROTECTED]> wrote: > Hi > > I have a multi-part project for building a JBoss J2EE system and the > client. The common, EJB, Web and SAR sub-projects all build nicely. > However the EAR does not build. I get the following: > > $ mvn install > [INFO] Scanning for projects... > [INFO] snapshot > org.codehaus.mojo:jboss-packaging-maven-plugin:2.0-SNAPSHOT: checking for > updates from codehaus-snapshot > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building jPugwash: EAR > [INFO] task-segment: [install] > [INFO] > ---------------------------------------------------------------------------- > [INFO] artifact org.apache.maven.plugins:maven-ear-plugin: checking for > updates from codehaus-snapshot > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking > for updates from codehaus-snapshot > [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking > for updates from codehaus-snapshot > [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for > updates from codehaus-snapshot > Downloading: > http://repo1.maven.org/maven2/jboss/jboss-common/4.0.5/jboss-common-4.0.5.pom > [INFO] [ear:generate-application-xml] > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Artifact[sar:uk.org.syscall.pugwash:pugwash-sar:jboss-sar] is not a > dependency of the project. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 7 seconds > [INFO] Finished at: Tue Aug 14 13:34:40 BST 2007 > [INFO] Final Memory: 4M/8M > [INFO] > ------------------------------------------------------------------------ > > However it builds just fine if I remove the SAR information. What am I > doing wrong? > The pom.xml is as follows: > > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-j2ee</artifactId> > <packaging>ear</packaging> > <name>jPugwash: EAR</name> > <parent> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>main</artifactId> > <version>2.0</version> > </parent> > <pluginRepositories> > <pluginRepository> > <id>codehaus-snapshot</id> > <name>Codehaus SNAPSHOTs</name> > <url>http://snapshots.repository.codehaus.org/</url> > <snapshots><enabled>true</enabled></snapshots> > </pluginRepository> > </pluginRepositories> > <dependencies> > <dependency> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-common</artifactId> > <version>2.0</version> > <type>jar</type> > </dependency> > <dependency> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-ejbs</artifactId> > <version>2.0</version> > <type>ejb</type> > </dependency> > <dependency> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-sar</artifactId> > <version>2.0</version> > <type>jboss-sar</type> > </dependency> > <dependency> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-web</artifactId> > <version>2.0</version> > <type>war</type> > </dependency> > <dependency> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-client</artifactId> > <version>2.0</version> > <type>jar</type> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>jboss-packaging-maven-plugin</artifactId> > <version>2.0-SNAPSHOT</version> > <extensions>true</extensions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > <displayName>jPugwash</displayName> > <modules> > <jarModule> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-common</artifactId> > <includeInApplicationXml>true</includeInApplicationXml> > </jarModule> > <webModule> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-web</artifactId> > <contextRoot>manual</contextRoot> > </webModule> > <sarModule> > <groupId>uk.org.syscall.pugwash</groupId> > <artifactId>pugwash-sar</artifactId> > <classifier>jboss-sar</classifier> > </sarModule> > </modules> > </configuration> > </plugin> > <plugin> > <artifactId>maven-jar-plugin</artifactId> > <executions> > <execution> > <goals> > <goal>sign</goal> > </goals> > </execution> > </executions> > <configuration> > <keystore>../pugwash.keystore</keystore> > <alias>pugwash</alias> > <storepass>pugwash</storepass> > <verify>true</verify> > </configuration> > </plugin> > </plugins> > </build> > </project> > > May thanks for any help > Steve > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]