0 Replies Latest reply on Mar 22, 2016 12:11 PM by atomicknight

    Support for custom Maven packaging types in ShrinkWrap Resolvers?

    atomicknight

      I have a Maven project that uses custom packaging types that are normally contributed by a plugin (with extensions=true). When building a new Arquillian deployment using ShrinkWrap Resolvers, the wrong extension is used for artifacts of these custom packaging types, which causes the deployment build to fail.

       

      Here is the code that I'm using to build the deployment:

       

      File[] dependencies = Maven.configureResolver().workOffline().loadPomFromFile("pom.xml").importCompileAndRuntimeDependencies().resolve().withTransitivity().asFile();
      

       

      I found some JIRA tickets related to custom packaging types (e.g. https://issues.jboss.org/browse/SHRINKRES-87); however, I can't find any way to hook into the relevant framework APIs without downcasting an intermediate return value from the chain above.

       

      Is there an officially supported API for adding custom packaging type mappings?

       

      Thanks in advance.