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)

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: resolver-1.1.0-alpha-1
    • Component/s: None
    • Labels:
      None

      Description

      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).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kpiwko Karel Piwko
                  Reporter:
                  ge0ffrey Geoffrey De Smet
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: