Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-136

System scoped dependencies shouldn't be added to WAR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0-beta-4
    • 2.0.0-beta-3
    • maven
    • None

      When resolving dependencies with importRuntimeDependencies and adding them to an archive as in

      File[] libs = Maven.resolver().loadPomFromFile("pom.xml").importRuntimeDependencies().asFile();
      ShrinkWrap.create(WebArchive.class, "seam-blog.war").addAsLibraries(libs);
      

      system-scoped dependencies are resolved and added to the archive as well.

      This should not happen and should be aligned with the behaviour of the maven war plugin, as described in this issue: https://jira.codehaus.org/browse/MWAR-23.

            kpiwko Karel Piwko
            rsmeral Ron Šmeral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: