Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers

ShrinkWrap should be able to exclude its own and Arquillian's -impl archives


      I'm using ShrinkWrap via Arquillian 1.0.0.Final.

      When the Maven Dependency Resolver extension is used to load dependencies from a project pom, the ShrinkWrap and Arquillian dependencies are automatically included in produced ShrinkWrap archives. There doesn't appear to be any easy way to tell ShrinkWrap to leave its own -impl archives out, so a trivial test archive bloats to 31MB or more of Arquilian and ShrinkWrap archives
      and dependencies. Some of the transitive dependencies could cause conflicts with app server libraries, too.

      What I'd like to see is a very quick and easy way to tell the Maven resolver to exclude
      anything from ShrinkWrap or Arquillian when loading dependencies from a pom.xml, eg:

          MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class)
              .excludeShrinkWrap().excludeArquillian();  // Imaginary for now

      Currently one should be able to do something like:

          MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class)

      ... but in my quick tests these exclusions appeared to have no effect.

            Unassigned Unassigned
            ringerc_jira Craig Ringer (Inactive)
            1 Vote for this issue
            2 Start watching this issue