Maven 2.x Dependency Plugin

org.codehaus.mojo:dependency-maven-plugin takes precedence over org.apache.maven.plugins:maven-dependency-plugin

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0-alpha-4
  • Fix Version/s: 2.0
  • Component/s: resolve-plugins
  • Labels:
    None
  • Number of attachments :
    0

Description

When an attempt is made to configure the org.apache.maven.plugins:maven-dependency-plugin, maven resolves the org.codehaus.mojo:dependency-maven-plugin plugin instead.

As a result of the different plugin config syntax, execution fails.

According to available docs and Google, specifying absolute behaviour when a plugin namespace clash occurs is either not possible, or not documented.

Issue Links

Activity

Hide
Graham Leggett added a comment -

According to some info on the users list, the plugin can be absolutely specified like this:

mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack

Ideally the maven-dependency-plugin site / FAQ should be changed to include:

  • The fact there is a namespace clash between dependency-maven-plugin and maven-dependency-plugin.
  • The fact that it can be worked around by specifying the plugin goal absolutely as abaove.
Show
Graham Leggett added a comment - According to some info on the users list, the plugin can be absolutely specified like this: mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack Ideally the maven-dependency-plugin site / FAQ should be changed to include:
  • The fact there is a namespace clash between dependency-maven-plugin and maven-dependency-plugin.
  • The fact that it can be worked around by specifying the plugin goal absolutely as abaove.
Hide
Brian Fox added a comment -

This is fixed in Maven 2.0.7, but you're correct I should add a FAQ. http://jira.codehaus.org/browse/MNG-2926

Show
Brian Fox added a comment - This is fixed in Maven 2.0.7, but you're correct I should add a FAQ. http://jira.codehaus.org/browse/MNG-2926
Hide
Brian Fox added a comment -

website updated

Show
Brian Fox added a comment - website updated

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: