Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4277

Remove core artifacts from ${plugin.artifacts}

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0-alpha-3
    • 3.0-alpha-3
    • Plugins and Lifecycle
    • None

    Description

      PluginDescriptor.getArtifacts(), exposed to plugins via the expression ${plugin.artifacts}, previously also contained a reference to the uber JAR as a substitution for the core artifacts. The code for this needs to make ugly assumptions on the resource URLs returned by the class loader framework to derive a file path from this. And just resolving the core artifacts from the repos is also suboptimal as it causes CPU/network overhead (the plugin manager doesn't need these files).

      So unless somebody can present a good use case to have the core artifacts resolved, we will safe us this complexity and limit the plugin.artifacts to the non-core artifacts. This is sufficient for Surefire and many other plugins that use this info merely to easily grab a few specific JARs to fork another tool.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: