I've added something that will validate the plugin descriptor while
loading under MNG-4091.
The error will be:
[INFO] Internal error in the plugin manager getting plugin
'com.caucho:resin-maven-plugin': Plugin 'com.caucho:resin-maven-plugin:
3.1.6' has an invalid descriptor:
1) Plugin's descriptor contains the wrong version: 3.1-SNAPSHOT
However, if this is the only thing to come out of this RC then I'm not
opposed to rolling the release from a previous revision and leaving it
until 2.1.1 to save more testing needing to be done.
Cheers,
Brett
On 17/03/2009, at 12:11 PM, Brett Porter wrote:
I'm working on an enhancement to the error handling so this won't
cause too much confusion.
Cheers,
Brett
On 17/03/2009, at 9:42 AM, 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]
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]