nice catch. I looked at that plugin descriptor, but missed the different version...I was looking more for bad xml.

-john

Benjamin Bentmann wrote:
Chris Handy wrote:

I am having an issue where the inclusion of a plugin using maven 2.0.9 works fine but in maven 2.1.0-RC3 it complains saying it can not find the plugin descriptor. I also saw the same behavior in RC2. I opened up the jar and
see the plugin.xml file in META-INF/maven/plugin.xml.  Here is the sample
pom to illustrate the issue.
[...]
  <build>
      <plugins>
         <plugin>
           <groupId>com.caucho</groupId>
           <artifactId>resin-maven-plugin</artifactId>
           <version>3.1.6</version>
         </plugin>
     </plugins>
  </build>
</project>

As per MNG-3284, Maven 2.1 and 3.x are now considering the version when loading plugins. This in turn makes Maven less forgiving about bad plugin descriptors like the one included in the plugin JAR [1] you mentioned:

  <plugin>
    <description></description>
    <groupId>com.caucho</groupId>
    <artifactId>resin-maven-plugin</artifactId>
    <version>3.1-SNAPSHOT</version>
    ...
  </plugin>

Note the version "3.1-SNAPSHOT". You declared to use resin-maven-plugin:3.1.6 but the plugin descriptor is actually for resin-maven-plugin:3.1-SNAPSHOT. This mismatch causes the error.

You should contact the maintainer of the plugin and request a new release with proper metadata.


Benjamin


[0] http://jira.codehaus.org/browse/MNG-3284
[1] http://caucho.com/m2/com/caucho/resin-maven-plugin/3.1.6/resin-maven-plugin-3.1.6.jar

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to