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 <[email protected]>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: [email protected] > For additional commands, e-mail: [email protected] >
