-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
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) .includeDependenciesFromPom("pom.xml"); .excludeShrinkWrap().excludeArquillian(); // Imaginary for now
Currently one should be able to do something like:
MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class) .includeDependenciesFromPom("pom.xml") .exclusions("org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee", "org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven", "org.jboss.arquillian.junit:arquillian-junit-container", "org.jboss.as:jboss-as-arquillian-container-remote");
... but in my quick tests these exclusions appeared to have no effect.
- relates to
-
SHRINKRES-190 implements equals and hashCode methods in MavenResolvedArtifactImpl / MavenArtifactInfoImpl
- Closed