Maven 2 & 3

Apache and Mojo plugins take precendence over plugins in the pom.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.1.0, 3.0-alpha-2
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

When resolving plugin prefixes, plugins from apache and mojo take precendence over plugins explicitly in the pom.xml. For example, an old plugin with prefix "jetty" at org.codehaus.mojo.jetty-maven-plugin is always used in preference to the new maven-jetty-plugin with prefix "jetty", even though it is specified in the pom like so:

<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0-SNAPSHOT</version>
</plugin>

Issue Links

Activity

Hide
Carlos Sanchez added a comment -

Note that I removed the codehaus plugin from http://www.ibiblio.org/maven2/org/codehaus/mojo/maven-metadata.xml

There was an entry

<plugin>
<name>Maven2 Jetty plugin</name>
<prefix>jetty</prefix>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>

althought there was no jetty-maven-plugin folder that was enough to make maven fail

Show
Carlos Sanchez added a comment - Note that I removed the codehaus plugin from http://www.ibiblio.org/maven2/org/codehaus/mojo/maven-metadata.xml There was an entry <plugin> <name>Maven2 Jetty plugin</name> <prefix>jetty</prefix> <artifactId>jetty-maven-plugin</artifactId> </plugin> althought there was no jetty-maven-plugin folder that was enough to make maven fail
Hide
Brian Fox added a comment -

This is related to / duplicated by MNG-2926

Show
Brian Fox added a comment - This is related to / duplicated by MNG-2926
Hide
Benjamin Bentmann added a comment -

Preferring plugins from the POM over those from the plugin groups in the settings wasn't fixed until 3.x.

Show
Benjamin Bentmann added a comment - Preferring plugins from the POM over those from the plugin groups in the settings wasn't fixed until 3.x.
Hide
Benjamin Bentmann added a comment -

Merged to 2.1.x in r751248.

Show
Benjamin Bentmann added a comment - Merged to 2.1.x in r751248.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: