[
https://issues.apache.org/jira/browse/SLING-6268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15654453#comment-15654453
]
Konrad Windszus edited comment on SLING-6268 at 11/10/16 5:29 PM:
------------------------------------------------------------------
With the latest Sling IDE (1.1.1.qualifier) with {{org.sonatype.tycho.m2e}}
installed in version {{0.8.0.201409231215}} I get a different error message:
{{Conflicting lifecycle mapping (plugin execution
"org.apache.felix:maven-bundle-plugin:3.2.0:bundle (execution: default-bundle,
phase: package)"). To enable full functionality, remove the conflicting mapping
and run Maven->Update Project Configuration.}}. This is expected as both
m2e-tycho as well as Sling IDE bind their configurators to the bundle {{goal}}
of the {{m-b-p}}. Don't know why we didn't have the issue before, I still need
to investigate. The active extension seem to depend on the plugin id. Asked
about multiple Eclipse plugins providing lifecycle mappings for the same Maven
plugin goal on the m2e-users mailing list.
About the error you experienced I am pretty sure you are acting on an old
version of the
https://github.com/apache/sling/blob/trunk/tooling/ide/eclipse-m2e-ui/lifecycle-mapping-metadata.xml
which had a definition for packaging type "bundle" (in the old revision
https://github.com/apache/sling/commit/9b87230177c8ded8f6d5b86099aeda3818e5b438).
was (Author: kwin):
With the latest Sling IDE (1.1.1.qualifier) with {{org.sonatype.tycho.m2e}}
installed in version {{0.8.0.201409231215}} I get a different error message:
{{Conflicting lifecycle mapping (plugin execution
"org.apache.felix:maven-bundle-plugin:3.2.0:bundle (execution: default-bundle,
phase: package)"). To enable full functionality, remove the conflicting mapping
and run Maven->Update Project Configuration.}}. This is expected as both
m2e-tycho as well as Sling IDE bind their configurators to the bundle goal.
Don't know why we didn't have the issue before, I still need to investigate.
About the error you experienced I am pretty sure you are acting on an old
version of the
https://github.com/apache/sling/blob/trunk/tooling/ide/eclipse-m2e-ui/lifecycle-mapping-metadata.xml
which had a definition for packaging type "bundle" (in the old revision
https://github.com/apache/sling/commit/9b87230177c8ded8f6d5b86099aeda3818e5b438).
> Error reported for bundle projects: Conflicting lifecycle mapping metadata
> --------------------------------------------------------------------------
>
> Key: SLING-6268
> URL: https://issues.apache.org/jira/browse/SLING-6268
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Affects Versions: Sling Eclipse IDE 1.2.0
> Reporter: Robert Munteanu
> Assignee: Konrad Windszus
> Fix For: Sling Eclipse IDE 1.2.0
>
> Attachments: eclipse-config.txt
>
>
> With a locally built Sling IDE 1.2.0 and the locally checked out Sling
> bundles I get the following kind of errors:
> {noformat}Conflicting lifecycle mapping metadata (project packaging
> type="bundle"). To enable full functionality, remove the conflicting mapping
> and run Maven->Update Project Configuration.{noformat}
> This one is for example for org.apache.sling.api . I do have Tycho Project
> Configurators 0.8.0.201409231215 installed. I'll attach my configuration
> details, if needed.
> The whole Sling checkout is at r1768748.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)