Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366338 - Maven Bundlor 1.1.0.M02 reports missing plugin.xml
Summary: Maven Bundlor 1.1.0.M02 reports missing plugin.xml
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: 1.1.0.M02   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 1.1.0.M03   Edit
Assignee: Glyn Normington CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 14:04 EST by C TRAN-XUAN CLA
Modified: 2011-12-13 08:36 EST (History)
3 users (show)

See Also:


Attachments
plugin.xml file with fixed version 1.0.0.M02 (9.75 KB, text/xml)
2011-12-11 14:08 EST, C TRAN-XUAN CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description C TRAN-XUAN CLA 2011-12-11 14:04:10 EST
Build Identifier: 

When using maven bundlor plugin to build a bundle, the build fails. Maven reports the following error:

[ERROR] Failed to parse plugin descriptor for org.eclipse.virgo.bundlor:org.eclipse.virgo.bundlor.maven:1.1.0.M02 (C:\.m2\repository\org\eclipse\virgo\bundlor\org.eclipse.virgo.bundlor.maven\1.1.0.M02\org.eclipse.virgo.bundlor.maven-1.1.0.M02.jar): No plugin descriptor found at META-INF/maven/plugin.xml -> [Help 1]

When browsing the archive of the maven plugin "org.eclipse.virgo.bundlor.maven:1.1.0.M02", we can see the file "plugin.xml" is in the archive in the directory META-INF/plugin.xml while it should be in META-INF/maven/plugin.xml.

Note also that the content of plugin.xml is not correct: version of the plugin is set to 1.0.0.M01 while it should be 1.0.0.M02 (this will cause the plugin fails even if the above error has been fixed).

To fix the first issue, I guess the file plugin.xml has just to be moved from org.eclipse.virgo.bundlor.maven/src/main/resources/META-INF/ to the directory org.eclipse.virgo.bundlor.maven/src/main/resources/META-INF/maven.

To fix the second issue, just update the version of the maven plugin bundlor to 1.0.0.M02.

Reproducible: Always

Steps to Reproduce:
1. Runs the plugin org.eclipse.virgo.bundlor.maven:1.0.0.M02 against a maven project which uses this plugin. Command is "mvn clean install".
Comment 1 C TRAN-XUAN CLA 2011-12-11 14:08:23 EST
Created attachment 208229 [details]
plugin.xml file with fixed version 1.0.0.M02

Please do find the file plugin.xml with the right version 1.0.0.M02.
Note also, the version of the virgo artifacts have been upgraded with the version 3.0.2.RELEASE.

This file has to be place under <i>org.eclipse.virgo.bundlor.maven/src/main/resources/META-INF/maven</i> to fix the first issue.
Comment 2 C TRAN-XUAN CLA 2011-12-11 14:37:13 EST
Note that in the attached file, the versions of the other bundlor dependencies have been upgraded to 1.1.0.M02 as well.
Comment 3 Glyn Normington CLA 2011-12-13 08:06:33 EST
Fixed in 7ce7d8f9147adb2f009f4500a3c7fbc2ddd7accf.
Comment 4 Glyn Normington CLA 2011-12-13 08:36:49 EST
I shipped 1.1.0.M03 to contain this fix (except the plugin version is of course 1.1.0.M03).