This content has been marked as final.
Show 5 replies
-
1. Re: Resolving dependencies with Maven in a JavaArchive
aslak Mar 20, 2012 7:06 AM (in response to lucianom86)A JavaArchive can't contain Libraries, so no.
You can always force them in, but probably won't be understood by the Container. e..g .addAsResource(new File("my-library.jar"))
-
2. Re: Resolving dependencies with Maven in a JavaArchive
lucianom86 Mar 20, 2012 7:13 AM (in response to aslak)Hi Aslak,
I was wondering that. But in this case, what's the best practice?Using WebArchive?
Thanks.
-
3. Re: Resolving dependencies with Maven in a JavaArchive
gboro54 Mar 20, 2012 7:53 AM (in response to lucianom86)1 of 1 people found this helpfulI built my testable java arcive then put it with the needed libraries in an ear.
-
4. Re: Resolving dependencies with Maven in a JavaArchive
aslak Mar 20, 2012 7:52 AM (in response to lucianom86)The best practice would probably be to use the packaging type that best fit your application / test.
Is your final product a EAR, and your Test is relying on a EAR structure, use a EAR. If the final is a WAR, then use a WAR.
-
5. Re: Resolving dependencies with Maven in a JavaArchive
lucianom86 Mar 20, 2012 7:54 AM (in response to aslak)Ok, thanks everyone.