Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360024

Summary: Maven reports that Virgo Bundlor does not have plugin descriptor
Product: [RT] Virgo Reporter: Matthew Adams <matthew>
Component: toolingAssignee: Project Inbox <virgo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, glyn.normington, matthew, mlippert
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
pom file that helps to build bundlor for 1.1.0.M01
glyn.normington: iplog+
The missing plugin.xml file in question for 1.1.0.M01 glyn.normington: iplog+

Description Matthew Adams CLA 2011-10-05 15:31:37 EDT
Build Identifier: 1.1.0.BUILD-SNAPSHOT

I attempted to use the Virgo Bundlor plugin via
...
        <pluginRepository>
            <id>Virgo-snapshot</id>
            <url>http://build.eclipse.org/rt/virgo/maven/bundles/snapshot</url>
        </pluginRepository>
...
            <plugin>
                <groupId>org.eclipse.virgo.bundlor</groupId>
                <artifactId>org.eclipse.virgo.bundlor.maven</artifactId>
                <version>1.1.0.BUILD-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>bundlor</id>
                        <goals>
                            <goal>bundlor</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
            </plugin>
...

Maven reports the following:
...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin descriptor for the plugin Plugin [org.eclipse.virgo.bundlor:org.eclipse.virgo.bundlor.maven] was not found. Please verify that the plugin JAR C:\Users\madams\.m2\repository\org\
eclipse\virgo\bundlor\org.eclipse.virgo.bundlor.maven\1.1.0.BUILD-SNAPSHOT\org.eclipse.virgo.bundlor.maven-1.1.0.BUILD-SNAPSHOT.jar is intact.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: The plugin descriptor for the plugin Plugin [org.eclipse.virgo.bundlor:org.eclipse.virgo.bundlor.maven] was not found. Please verify that the plugin JAR C:\Users\
madams\.m2\repository\org\eclipse\virgo\bundlor\org.eclipse.virgo.bundlor.maven\1.1.0.BUILD-SNAPSHOT\org.eclipse.virgo.bundlor.maven-1.1.0.BUILD-SNAPSHOT.jar is intact.
        at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:360)
        at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:224)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
        at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1503)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1282)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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: 3 seconds
[INFO] Finished at: Wed Oct 05 14:25:27 CDT 2011
[INFO] Final Memory: 6M/116M
[INFO] ------------------------------------------------------------------------

Reproducible: Always

Steps to Reproduce:
1. Use the Virgo Bundlor in a Maven project
2. Run maven.
3. Observe error.
Comment 1 C TRAN-XUAN CLA 2011-10-29 12:47:11 EDT
Created attachment 206168 [details]
pom file that helps to build bundlor for 1.1.0.M01
Comment 2 C TRAN-XUAN CLA 2011-10-29 12:48:32 EDT
Comment on attachment 206168 [details]
pom file that helps to build bundlor for 1.1.0.M01

Don't know if that helps but here the pom file that helps to build bundlor and which include the missing plugin.xml.
Comment 3 C TRAN-XUAN CLA 2011-10-29 12:51:15 EDT
Created attachment 206169 [details]
The missing plugin.xml file in question for 1.1.0.M01

Don't know if that helps but here is the missing plugin.xml to be placed in the bundlor jar (version 1.1.0.M01) under META-INF/maven/.
Comment 4 Glyn Normington CLA 2011-11-01 04:45:04 EDT
We should flag attachments as iplog rather than whole bugs.
Comment 5 Chris Frost CLA 2011-11-01 08:42:43 EDT
Could you please confirm that you write the patch yourself and have permission
to donate it.

Thanks.
Comment 6 Chris Frost CLA 2011-11-07 11:28:27 EST
Hi. 

Could you please confirm that you write the patch yourself and have permission
to donate it.

Thanks.


I'm going to add the plugin file but not the pom, we are building Bundlor using an ivy/ant build so it isn't of much use but may be to others.

Chris.
Comment 7 Chris Frost CLA 2011-11-08 06:13:03 EST
Plugin file commited and attributed to ctranxuan@gmail.com.