| Summary: | m2e not detecting lifecycle mapping metadata | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Ricardo Gladwell <ricardo> | ||||||
| Component: | m2e | Assignee: | Paul Tatavu <vladt> | ||||||
| Status: | RESOLVED INVALID | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | igor, ricardo, vladt | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ricardo Gladwell
Created attachment 191577 [details]
Sampe project source
You seem to have attached m2eclipse-android-integration zipped sources, but we need a sample project (eg, packaging=apk) and steps to reproduce "m2e does not call com.googlecode.eclipse.m2e.android.androidDevelopmentToolsProjectConfigurator project configurator" problem. There are two problems: 1. The com.googlecode.eclipse.m2e.android/lifecycle-mapping-metadata.xml syntax is not correct: there is a pluginExecution element outside of the pluginExecutions element. 2. In com.googlecode.eclipse.m2e.android/plugin.xml, the com.googlecode.eclipse.m2e.android.androidDevelopmentToolsProjectConfigurator configurator is defined as secondary to org.eclipse.m2e.jdt.javaConfigurator. But org.eclipse.m2e.jdt.javaConfigurator is a project configurator for maven-compiler-plugin and com.googlecode.eclipse.m2e.android.androidDevelopmentToolsProjectConfigurator is a configurator for maven-android-plugin. A primary and a secondary configurators must be associated with the same maven plugin. Do you have a use case for having the primary and secondary configurators associated with different maven plugins? Thanks for the feedback, that seemed fixing both those problems seemed to fix the issue. However, maybe m2eclipse should throw meaningful exceptions when invalid lifecycle-mapping-metadata.xml files are used? m2e logs the exception about the invalid lifecycle mapping metadata (from an extension in a bundle) as a warning. Maybe we should log it as error... (In reply to comment #5) > m2e logs the exception about the invalid lifecycle mapping metadata (from an > extension in a bundle) as a warning. Maybe we should log it as error... Maybe this is an error for the m2e tycho plugin? Some sort of lifecycle-mapping-metadata.xml syntax checking? I don't think m2e-tycho necessarily needs to do anything here, but lifecycle-mapping-metadata.xml syntax validation during cli build is something we wanted to add as part of our "m2e extension publishing" story. Not sure if we'll have time to do this for 1.0, so help will certainly be appreciated. |