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
