I got the plugin to work by changing the project description to be on one line. The POM when it contained [1] and when it worked contained [2]. The difference this created was to keep the <description> and </description> in the plugin.xml on the same line.
Is the plugin.xml file parsed with a regular XML parser? [1] <description> Maven plugin which assembles files into an RPM package for installation On various target UNIX systems. </description> [2] <description> Maven plugin which assembles files into an RPM package </description> -----Original Message----- From: Allison, Bob [mailto:[EMAIL PROTECTED] Sent: Monday, November 14, 2005 09:20 To: Maven Users List Subject: Plugin Execution Problem I am having some trouble executing a plugin I am building, and I'm not sure where to look to find the problem. If anyone can provide some pointers on what to examine, I would be very grateful. I am building an RPM plugin with a single goal "rpm:rpm". The goal is implemented by the class org.codehaus.mojo.rpm.RPMMojo. The jar built for the plugin contains: 0 Mon Nov 14 07:09:12 MST 2005 META-INF/ 377 Mon Nov 14 07:09:10 MST 2005 META-INF/MANIFEST.MF 0 Mon Nov 14 07:05:54 MST 2005 META-INF/maven/ 0 Mon Nov 14 07:05:58 MST 2005 org/ 0 Mon Nov 14 07:05:58 MST 2005 org/codehaus/ 0 Mon Nov 14 07:05:58 MST 2005 org/codehaus/mojo/ 0 Mon Nov 14 07:05:58 MST 2005 org/codehaus/mojo/rpm/ 9698 Mon Nov 14 07:09:04 MST 2005 META-INF/maven/plugin.xml 1567 Mon Nov 14 07:09:08 MST 2005 org/codehaus/mojo/rpm/Source.class 939 Mon Nov 14 07:09:08 MST 2005 org/codehaus/mojo/rpm/RPMMojo$StdoutConsumer.class 939 Mon Nov 14 07:09:08 MST 2005 org/codehaus/mojo/rpm/RPMMojo$StderrConsumer.class 10189 Mon Nov 14 07:09:08 MST 2005 org/codehaus/mojo/rpm/RPMMojo.class 3237 Mon Nov 14 07:05:58 MST 2005 org/codehaus/mojo/rpm/Mapping.class 0 Mon Nov 14 07:09:12 MST 2005 META-INF/maven/org.codehaus.mojo/ 0 Mon Nov 14 07:09:12 MST 2005 META-INF/maven/org.codehaus.mojo/rpm-maven-plugin/ 7269 Mon Nov 14 07:09:10 MST 2005 META-INF/maven/org.codehaus.mojo/rpm-maven-plugin/pom.xml 133 Mon Nov 14 07:09:10 MST 2005 META-INF/maven/org.codehaus.mojo/rpm-maven-plugin/pom.properties When I try to use the plugin, I get the following (with -X): + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: '/home/allisord/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/opt/maven/2/conf/plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: qaccess.rpm:base:pom:1.0-SNAPSHOT [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: qaccess:rpm:pom:1.0-SNAPSHOT [INFO] Searching repository for plugin with prefix: 'rpm'. [DEBUG] Skipping disabled repository central [DEBUG] Skipping disabled repository qadev-r [DEBUG] Skipping disabled repository central [DEBUG] rpm-maven-plugin: resolved to version 1.0-alpha-1-20051114.140910-1 from repository qadev [DEBUG] Retrieving parent-POM from the repository for project: null:rpm-maven-plugin:maven-plugin:1.0-alpha-1-20051114.140910-1 [DEBUG] rpm-maven-plugin: resolved to version 1.0-alpha-1-20051114.140910-1 from repository qadev [DEBUG] rpm-maven-plugin: resolved to version 1.0-alpha-1-20051114.140910-1 from repository qadev [DEBUG] Retrieving parent-POM from the repository for project: null:rpm-maven-plugin:maven-plugin:1.0-alpha-1-20051114.140910-1 [DEBUG] rpm-maven-plugin: resolved to version 1.0-alpha-1-20051114.140910-1 from repository qadev [INFO] ------------------------------------------------------------------------ ---- [INFO] Building Q.Access Base RPM [INFO] task-segment: [rpm:rpm] [INFO] ------------------------------------------------------------------------ ---- [DEBUG] org.codehaus.mojo:rpm-maven-plugin:maven-plugin:1.0-alpha-1-20051114.140 910-1 (selected for runtime) [DEBUG] Skipping disabled repository central [DEBUG] plexus-archiver: resolved to version 1.0-alpha-4-20051114.140433-1 from repository qadev [DEBUG] Retrieving parent-POM from the repository for project: null:plexus-archiver:jar:1.0-alpha-4-20051114.140433-1 [DEBUG] Retrieving parent-POM from the repository for project: org.codehaus.plexus:plexus-components:pom:1.1.4 [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-4-SNAPSHOT (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime) [DEBUG] plexus-archiver: resolved to version 1.0-alpha-4-20051114.140433-1 from repository qadev ----------------------------------------------------- this realm = app0.child-container[org.codehaus.mojo:rpm-maven-plugin] urls[0] = file:/home/allisord/.m2/repository/org/codehaus/mojo/rpm-maven-plugin/1. 0-alpha-1-SNAPSHOT/rpm-maven-plugin-1.0-alpha-1-SNAPSHOT.jar urls[1] = file:/home/allisord/.m2/repository/org/codehaus/plexus/plexus-archiver/1 .0-alpha-4-SNAPSHOT/plexus-archiver-1.0-alpha-4-SNAPSHOT.jar Number of imports: 0 this realm = plexus.core.maven urls[0] = file:/opt/maven/2/lib/maven-core-2.0.jar urls[1] = file:/opt/maven/2/lib/maven-plugin-parameter-documenter-2.0.jar urls[2] = file:/opt/maven/2/lib/maven-model-2.0.jar urls[3] = file:/opt/maven/2/lib/maven-profile-2.0.jar urls[4] = file:/opt/maven/2/lib/maven-project-2.0-1.jar urls[5] = file:/opt/maven/2/lib/maven-error-diagnostics-2.0.jar urls[6] = file:/opt/maven/2/lib/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/opt/maven/2/lib/wagon-http-lightweight-1.0-alpha-5.jar urls[8] = file:/opt/maven/2/lib/maven-plugin-descriptor-2.0.jar urls[9] = file:/opt/maven/2/lib/commons-cli-1.0.jar urls[10] = file:/opt/maven/2/lib/wagon-ssh-1.0-alpha-5.jar urls[11] = file:/opt/maven/2/lib/maven-artifact-manager-2.0-1.jar urls[12] = file:/opt/maven/2/lib/maven-artifact-2.0-1.jar urls[13] = file:/opt/maven/2/lib/maven-monitor-2.0.jar urls[14] = file:/opt/maven/2/lib/maven-repository-metadata-2.0.jar urls[15] = file:/opt/maven/2/lib/jsch-0.1.23.jar urls[16] = file:/opt/maven/2/lib/maven-settings-2.0.jar urls[17] = file:/opt/maven/2/lib/wagon-file-1.0-alpha-5.jar urls[18] = file:/opt/maven/2/lib/wagon-provider-api-1.0-alpha-5.jar urls[19] = file:/opt/maven/2/lib/maven-reporting-api-2.0.jar urls[20] = file:/opt/maven/2/lib/maven-plugin-api-2.0.jar urls[21] = file:/opt/maven/2/lib/maven-plugin-registry-2.0.jar urls[22] = file:/opt/maven/2/lib/doxia-sink-api-1.0-alpha-4.jar Number of imports: 0 this realm = plexus.core urls[0] = file:/opt/maven/2/core/plexus-container-default-1.0-alpha-8.jar urls[1] = file:/opt/maven/2/core/plexus-utils-1.0.4.jar Number of imports: 0 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ ---- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] Internal error in the plugin manager executing goal 'org.codehaus.mojo:rpm-maven-plugin:1.0-alpha-1-SNAPSHOT:rpm': Unable to find the mojo 'org.codehaus.mojo:rpm-maven-plugin:1.0-alpha-1-SNAPSHOT:rpm' in the plugin 'org.codehaus.mojo:rpm-maven-plugin' org.codehaus.mojo.rpm.RPMMojo [INFO] ------------------------------------------------------------------------ ---- [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.mojo:rpm-maven-plugin:1.0-alpha-1-SNAPSHOT:rpm': Unable to find the mojo 'org.codehaus.mojo:rpm-maven-plugin:1.0-alpha-1-SNAPSHOT:rpm' in the plugin 'org.codehaus.mojo:rpm-maven-plugin' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:452) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'org.codehaus.mojo:rpm-maven-plugin:1.0-alpha-1-SNAPSHOT:rpm' in the plugin 'org.codehaus.mojo:rpm-maven-plugin' at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl uginManager.java:520) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:377) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:519) ... 16 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExcept ion: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.codehaus.mojo:rpm-maven-plugin:1.0-alph a-1-SNAPSHOT:rpm', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer .java:331) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer .java:436) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl uginManager.java:511) ... 18 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'null', implementation: 'org.codehaus.mojo.rpm.RPMMojo' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeExce ption(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInsta nce(JavaComponentFactory.java:54) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(Defau ltPlexusContainer.java:1454) at org.codehaus.plexus.component.manager.AbstractComponentManager.createCom ponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getCompo nent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer .java:327) ... 20 more Caused by: java.lang.ClassNotFoundException: org.codehaus.mojo.rpm.RPMMojo at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoad er.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j ava:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j ava:274) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j ava:274) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInsta nce(JavaComponentFactory.java:30) ... 24 more [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: 3 seconds [INFO] Finished at: Mon Nov 14 07:10:38 MST 2005 [INFO] Final Memory: 3M/55M [INFO] ------------------------------------------------------------------------ ---- --------------------------------------------------------------------- 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]
