Could someone tell me what's wrong with the attached POM. It should basically build an EAR with "application.xml" defining "jboss-seam" as only EJB module. The problem is I'm getting:
$ mvn package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building seam-ear [INFO] task-segment: [package] [INFO] ------------------------------------------------------------------------ [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Artifact[ejb:org.jboss.seam:jboss-seam] is not a dependency of the project. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Sun Jun 26 12:46:16 EEST 2011 [INFO] Final Memory: 8M/154M [INFO] ------------------------------------------------------------------------ I've really included "jboss-seam" as a dependency and I even expect I don't need to define it as <ejbModule> in the EAR plugin configuration, as it is already declared as <packaging>ejb</packaging>, but without defining it as <ejbModule> it ends up packaged as ordinary lib and not included in the "application.xml" (this might be related to the main problem). I'm using Maven 2.2.1 on Windows. -- Stanimir
<?xml version="1.0" encoding="UTF-8" ?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>net.example.ear</groupId> <artifactId>seam-ear</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>ear</packaging> <name>seam-ear</name> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.6</version> <configuration> <version>5</version> <defaultLibBundleDir>lib</defaultLibBundleDir> <fileNameMapping>no-version</fileNameMapping> <modules> <ejbModule> <groupId>org.jboss.seam</groupId> <artifactId>jboss-seam</artifactId> </ejbModule> </modules> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.jboss.seam</groupId> <artifactId>jboss-seam</artifactId> <version>2.0.2.SP1</version> <!-- <type>ejb</type> --> </dependency> </dependencies> <repositories> <repository> <id>public-jboss</id> <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> </repository> </repositories> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org