Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-228

Pluggable MavenArtifactUtil

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.5.0.CR1
    • None
    • Maven
    • None

    Description

      WildFly Swarm uses the <artifact> feature of module.xml, and also provides a way to resolve a listed artifact from a maven repository within the uberjar -swarm.jar.

      Currently, we copy/paste/modify MavenArtifactUtil.java.

      https://github.com/wildfly-swarm/wildfly-swarm/blob/master/bootstrap/src/main/java/org/jboss/modules/MavenArtifactUtil.java#L293-L324

      Ideally, it would be nice if the artifact resolution bits of MavenArtifactUtil was some sort of ordered list of Things To Try.

      In some cases, we would like -swarm.jar applications to resolve only from the embedded m2repo/, not going online or checking the user's M2_REPO. This would help us test to ensure that we did indeed fully populate the internal m2repo/ correctly.

      So, a List<ResolutionStrategy> used by MavenArtifactUtil would be lovely.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            bmcwhirt@redhat.com Bob McWhirter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: