5 Replies Latest reply on Mar 20, 2012 7:54 AM by lucianom86

    Resolving dependencies with Maven in a JavaArchive

    lucianom86

      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