You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Chris Handy <Ch...@condenet.com> on 2009/03/16 22:26:56 UTC

Plugin incompatability between between 2.0.9 and 2.1

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.

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.test</groupId>
  <artifactId>resin-test</artifactId>
  <packaging>pom</packaging>
  <version>3.0.0</version>
  <name>resin test pom</name>
  <pluginRepositories>
    <pluginRepository>
      <id>caucho</id>
      <name>Caucho</name>
      <url>http://caucho.com/m2</url>
    </pluginRepository>
  </pluginRepositories>
  <build>
      <plugins>
         <plugin>
           <groupId>com.caucho</groupId>
           <artifactId>resin-maven-plugin</artifactId>
           <version>3.1.6</version>
         </plugin>
     </plugins>
  </build>
</project>

And here is the error I get when trying to install it

CWD:~/temp/testpom
chandy: mvn -version
Apache Maven 2.1.0-RC3 (r754932; 2009-03-16 12:31:06-0400)
Java version: 1.6.0_05
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"

CWD:~/temp/testpom
chandy: mvn install -X
+ Error stacktraces are turned on.
Apache Maven 2.1.0-RC3 (r754932; 2009-03-16 12:31:06-0400)
Java version: 1.6.0_05
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"
[DEBUG] Building Maven user-level plugin registry from:
'/Users/chandy/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/Users/chandy/Developer/Tools/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Wagons could not be registered as the extension container was never
created
[INFO] 
------------------------------------------------------------------------
[INFO] Building resin test pom
[INFO]    task-segment: [install]
[INFO] 
------------------------------------------------------------------------
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11
for project: null:maven-site-plugin:maven-plugin:2.0-beta-7 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for
project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project:
org.apache.maven:maven-parent:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8
for project: null:maven-install-plugin:maven-plugin:2.2 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for
project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Trying repository caucho
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'caucho' with url: 'http://caucho.com/m2'.
Downloading: 
http://caucho.com/m2/com/caucho/resin-maven-plugin/3.1.6/resin-maven-plugin-
3.1.6.pom
[DEBUG] attempting to create parent directories for destination:
resin-maven-plugin-3.1.6.pom.tmp
908b downloaded  (resin-maven-plugin-3.1.6.pom)
[DEBUG]   Artifact resolved
[DEBUG] Trying repository caucho
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'caucho' with url: 'http://caucho.com/m2'.
Downloading: 
http://caucho.com/m2/com/caucho/resin-maven-plugin/3.1.6/resin-maven-plugin-
3.1.6.jar
[DEBUG] attempting to create parent directories for destination:
resin-maven-plugin-3.1.6.jar.tmp
9K downloaded  (resin-maven-plugin-3.1.6.jar)
[DEBUG]   Artifact resolved
[INFO] 
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] The plugin descriptor for the plugin Plugin
[com.caucho:resin-maven-plugin] was not found. Please verify that the plugin
JAR 
/Users/chandy/.m2/repository/com/caucho/resin-maven-plugin/3.1.6/resin-maven
-plugin-3.1.6.jar is intact.
[INFO] 
------------------------------------------------------------------------
[DEBUG] Trace
java.lang.IllegalStateException: The plugin descriptor for the plugin Plugin
[com.caucho:resin-maven-plugin] was not found. Please verify that the plugin
JAR 
/Users/chandy/.m2/repository/com/caucho/resin-maven-plugin/3.1.6/resin-maven
-plugin-3.1.6.jar is intact.
    at 
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.
java:330)
    at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
uginManager.java:215)
    at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
er.java:175)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1517)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(De
faultLifecycleExecutor.java:1479)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappin
gs(DefaultLifecycleExecutor.java:1245)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:518)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:371)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:332)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:181)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Mar 16 17:16:32 EDT 2009
[INFO] Final Memory: 5M/13M
[INFO] 
------------------------------------------------------------------------

Any help would be apprecated.

Thanks,
Chris

Re: Plugin incompatability between between 2.0.9 and 2.1

Posted by John Casey <jd...@commonjava.org>.
Can you please re-run with -X, capture the console output to a file 
(using the 'tee' utility if you're on *nix works well), and attach that 
file to a new JIRA issue at:

http://jira.codehaus.org/browse/MNG

If you can attach the test project that displays the problem, that will 
make the process even faster to reproduce and fix. Then, just reply to 
this thread with the MNG number, and I'll look into it.

Thanks,

-john

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.
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>                       http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.test</groupId>
>   <artifactId>resin-test</artifactId>
>   <packaging>pom</packaging>
>   <version>3.0.0</version>
>   <name>resin test pom</name>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>caucho</id>
>       <name>Caucho</name>
>       <url>http://caucho.com/m2</url>
>     </pluginRepository>
>   </pluginRepositories>
>   <build>
>       <plugins>
>          <plugin>
>            <groupId>com.caucho</groupId>
>            <artifactId>resin-maven-plugin</artifactId>
>            <version>3.1.6</version>
>          </plugin>
>      </plugins>
>   </build>
> </project>
> 
> And here is the error I get when trying to install it
> 
> CWD:~/temp/testpom
> chandy: mvn -version
> Apache Maven 2.1.0-RC3 (r754932; 2009-03-16 12:31:06-0400)
> Java version: 1.6.0_05
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"
> 
> CWD:~/temp/testpom
> chandy: mvn install -X
> + Error stacktraces are turned on.
> Apache Maven 2.1.0-RC3 (r754932; 2009-03-16 12:31:06-0400)
> Java version: 1.6.0_05
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"
> [DEBUG] Building Maven user-level plugin registry from:
> '/Users/chandy/.m2/plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> '/Users/chandy/Developer/Tools/maven2/conf/plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Wagons could not be registered as the extension container was never
> created
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building resin test pom
> [INFO]    task-segment: [install]
> [INFO] 
> ------------------------------------------------------------------------
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11
> for project: null:maven-site-plugin:maven-plugin:2.0-beta-7 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for
> project: org.apache.maven.plugins:maven-plugins:pom:11 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project:
> org.apache.maven:maven-parent:pom:8 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8
> for project: null:maven-install-plugin:maven-plugin:2.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for
> project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] Trying repository caucho
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'caucho' with url: 'http://caucho.com/m2'.
> Downloading: 
> http://caucho.com/m2/com/caucho/resin-maven-plugin/3.1.6/resin-maven-plugin-
> 3.1.6.pom
> [DEBUG] attempting to create parent directories for destination:
> resin-maven-plugin-3.1.6.pom.tmp
> 908b downloaded  (resin-maven-plugin-3.1.6.pom)
> [DEBUG]   Artifact resolved
> [DEBUG] Trying repository caucho
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'caucho' with url: 'http://caucho.com/m2'.
> Downloading: 
> http://caucho.com/m2/com/caucho/resin-maven-plugin/3.1.6/resin-maven-plugin-
> 3.1.6.jar
> [DEBUG] attempting to create parent directories for destination:
> resin-maven-plugin-3.1.6.jar.tmp
> 9K downloaded  (resin-maven-plugin-3.1.6.jar)
> [DEBUG]   Artifact resolved
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] The plugin descriptor for the plugin Plugin
> [com.caucho:resin-maven-plugin] was not found. Please verify that the plugin
> JAR 
> /Users/chandy/.m2/repository/com/caucho/resin-maven-plugin/3.1.6/resin-maven
> -plugin-3.1.6.jar is intact.
> [INFO] 
> ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.IllegalStateException: The plugin descriptor for the plugin Plugin
> [com.caucho:resin-maven-plugin] was not found. Please verify that the plugin
> JAR 
> /Users/chandy/.m2/repository/com/caucho/resin-maven-plugin/3.1.6/resin-maven
> -plugin-3.1.6.jar is intact.
>     at 
> org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.
> java:330)
>     at 
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
> uginManager.java:215)
>     at 
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManag
> er.java:175)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
> cycleExecutor.java:1517)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(De
> faultLifecycleExecutor.java:1479)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappin
> gs(DefaultLifecycleExecutor.java:1245)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> ycleExecutor.java:518)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
> ures(DefaultLifecycleExecutor.java:371)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
> ultLifecycleExecutor.java:332)
>     at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:181)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Mar 16 17:16:32 EDT 2009
> [INFO] Final Memory: 5M/13M
> [INFO] 
> ------------------------------------------------------------------------
> 
> Any help would be apprecated.
> 
> Thanks,
> Chris
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin incompatability between between 2.0.9 and 2.1

Posted by Brett Porter <br...@apache.org>.
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: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> --
> Brett Porter
> brett@apache.org
> http://blogs.exist.com/bporter/
>

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin incompatability between between 2.0.9 and 2.1

Posted by Brett Porter <br...@apache.org>.
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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin incompatability between between 2.0.9 and 2.1

Posted by John Casey <jd...@commonjava.org>.
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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin incompatability between between 2.0.9 and 2.1

Posted by Benjamin Bentmann <be...@udo.edu>.
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org