Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-325

ShrinkWrap.create(MavenImporter.class) that creates a WebArchive that adds all WEB-INF descriptors, classes, test classes and webapp resources too (not just dependencies and test dependencies)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • resolver-1.1.0-alpha-1
    • None
    • None
    • None

      The MavenDependencyResolver is nice, but it does only half the job.
      We still have to manually add "target/guvnor-webapp-5.3.0-SNAPSHOT/"
      or "target/classes" and "target/test-classes" and "src/webapp/WEB-INF/*" files etc.

      But all that info is in the pom model, so it would be nice to have a feature as a facade for that.
      Something like

      ShrinkWrap.createEntirelyFromMavenPom("pom.xml", includeEntireTestClasspath).
      

      Note that it can include the entire test classpath (for helper classes under "target/test-classes" and dependencies such as Mockito).

              kpiwko Karel Piwko
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: