Thanks for the response Anders. Since mvn install works, it's not too high a priority for us, and I'm glad that it's probably a bug and not my misunderstanding of how it's supposed to work. It's a little weird for our build/release server to do an install to its local maven repo - but not a huge deal.
Regards, Eric -----Original Message----- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Friday, November 13, 2009 10:14 AM To: Maven Users List Subject: Re: mvn package + SAR + EAR First, excellent practice of you to provide a test case project! I think this is a reactor bug in Maven 2.x. I tested with Maven 2.2.1 and it doesn't work (it tries to get the sar from the local repo). However, it does work with the new Maven 3.0-alpha-3 release. /Anders On Thu, Nov 12, 2009 at 20:36, Wittmann, Eric <eric.wittm...@yale.edu>wrote: > Hey everyone, I have been trying to include a SAR inside an EAR, > following the wiki entry here: > > > > > http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts<http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+%28Service+ARchive%29+Artifacts> > > > > Almost everything works as expected, except that "mvn package" fails with > (depending on the mvn version) one of: > > > > "Transitive dependency resolution for scope: test has failed for your > project." > > > > OR > > > > "Failed to resolve artifact." > > > > I have attached the simplest project I can come up with to test this out. > > > > Running "mvn clean package" will fail with one of the above messages. > However, "mvn clean package install" will succeed. And it succeeds > presumably because install will install the SAR into the local repository, > allowing the ear plugin to pick it up. > > > > This seems like a bug to me, but perhaps I'm just doing something wrong? > > > > Regards, > > > > Eric Wittmann > > ITS, Yale University > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.425 / Virus Database: 270.14.62/2499 - Release Date: 11/13/09 07:54:00 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org