| Summary: | No marketplace items are applicable for EAR projects (maven-ear-plugin:generate-application-xml) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Fred Bricon <fbricon> | ||||
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | igor, murray.waters | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Fred Bricon
> The m2e-wtp lifecycle mapping metadata
> (https://github.com/sonatype/m2eclipse-wtp/blob/master/org.maven.ide.eclipse.wtp/lifecycle-mapping-metadata.xml#L73)
> declares the generate-application-xml should be ignored, for ear packaging.
Scratch that : generate-application-xml is bound to a configurator. Damn, I don't even remember how my plugin works.
I can confirm the problem still exists in the current master HEAD. The problem is limited to quick-fix. Import of existing ear projects correctly offers installation of m2e-wtp integration. Will look at this post Indigo. Is there a workaround for this? can the error be safely ignored? maven-ear-plugin:generate-application-xml is associated with the ear packaging. I took a quick look at this and it appears MavenCatalogViewer is testing the maven-ear-plugin:generate-application-xml MojoExecutionKey against the lifecycleMappingMetadataSource.getPluginExecutions() but doesn't check if it's defined in the pluginExecutions from lifecycleMappingMetadataSource.getLifecycleMappings(). DiscoveryWizardProposal doesn't send any informations regarding the packaging to MavenCatalogViewer, in case of "Plugin execution not covered". Actually it seems the packaging types sent to MavenDiscovery.launchWizard are always an empty collection (https://github.com/eclipse/m2e-core/blob/master/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java#L54 and https://github.com/eclipse/m2e-core/blob/master/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java#L74). closing old/stale bugreports |