I have the same problem. The ear project seems to look for a jar of my war, instead of the war... did you get anywhere? " foo.bar:FOOBARWebApp:jar:1.0-SNAPSHOT"
note the jar, not war...? teknokrat wrote: > > I have a multiproject that builds an ear file out of a war and a sar. It > is virtually identical to the j2ee project in the book. I have gone into > each directory and called mvn install. This has worked in the sar and > web directories. I checked my local repository and both the war and the > sar files are there. When i run it in the ear directory I get > > [INFO] Scanning for projects... > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Provisioning System Enterprise Application > [INFO] task-segment: [install] > [INFO] > ---------------------------------------------------------------------------- > Downloading: > http://repo1.maven.org/maven2/provisioning/provisioning-sar/1.0/provisioning-sar-1.0.sar > [WARNING] Unable to get resource from repository central > (http://repo1.maven.org/maven2) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) provisioning:provisioning-sar:sar:1.0 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=com.mfuse.novo.provisioning > -DartifactId=provisioning-sar \ > -Dversion=1.0 -Dpackaging=sar -Dfile=/path/to/file > > Path to dependency: > 1) provisioning:provisioning-ear:ear:1.0 > 2) provisioning:provisioning-sar:sar:1.0 > > ---------- > 1 required artifact is missing. > > for artifact: > provisioning:provisioning-ear:ear:1.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > Whats going on here? The POM for my ear file is > > <project> > <modelVersion>4.0.0</modelVersion> > <parent> > <groupId>provisioning</groupId> > <artifactId>provisioning</artifactId> > <version>1.0</version> > </parent> > <artifactId>provisioning-ear</artifactId> > <name>Provisioning System Enterprise Application</name> > <description> > The EAR package > </description> > <packaging>ear</packaging> > <dependencies> > > <dependency> > <groupId>provisioning</groupId> > <artifactId>provisioning-sar</artifactId> > <version>1.0</version> > <type>sar</type> > </dependency> > <dependency> > <groupId>provisioning</groupId> > <artifactId>provisioning-war</artifactId> > <version>1.0</version> > <type>war</type> > </dependency> > > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > <displayName>Provisioning</displayName> > <description>Provisioning System</description> > <version>1.0</version> > <modules> > <javaModule> > <groupId>provisioning</groupId> > <artifactId>provisioning-sar</artifactId> > </javaModule> > <webModule> > <groupId>provisioning</groupId> > <artifactId>provisioning-war</artifactId> > <contextRoot>/provisioning</contextRoot> > </webModule> > </modules> > </configuration> > </plugin> > </plugins> > </build> > > </project> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/whats-going-wrong-with-my-build--tf1786087s177.html#a11956861 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]