5 Replies Latest reply: Mar 20, 2012 7:54 AM by Luciano Molinari RSS

Resolving dependencies with Maven in a JavaArchive

Luciano Molinari Newbie

Hi,

 

Is there a way of doing this:

 

ShrinkWrap.create(WebArchive.class, "testMaven.war").addPackages(true, PACKAGE_BASE + ".test")
                .addClasses(DaoTest.class).addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
                .addAsResource("test-persistence.xml", "META-INF/persistence.xml").addAsWebInfResource("test-ds.xml")
                .addAsLibraries(Maven.withPom("pom.xml").resolveAsFile("commons-lang:commons-lang"));

 

Using JavaArchive instead of WebArchive?

 

Thanks!

Luciano