Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345446 - No marketplace items are applicable for EAR projects (maven-ear-plugin:generate-application-xml)
Summary: No marketplace items are applicable for EAR projects (maven-ear-plugin:genera...
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 11:24 EDT by Fred Bricon CLA
Modified: 2021-04-19 13:22 EDT (History)
2 users (show)

See Also:


Attachments
m2e marketplace doesn't find any applicable items for EAR packaging (107.51 KB, image/jpeg)
2011-05-11 11:24 EDT, Fred Bricon CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Bricon CLA 2011-05-11 11:24:26 EDT
Created attachment 195376 [details]
m2e marketplace doesn't find any applicable items for EAR packaging

I just downloaded a JavaEE 3.7M7 distro, installed the latest m2e milestone (0.13.0.201104282116) and created an ear project (simple ear project, no archetype)
Upon creation, a marker appears : 
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-ear-plugin:2.4.2:generate-application-xml (execution: default-generate-application-xml, phase: generate-resources)

If I try to quick-fix it to discover new connectors, the m2e Marketplace window popups but displays "No marketplace items are applicable"

I expected the m2e discovery mechanism to associate m2e-wtp with ear projects.

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.

If I select the Lifecycles checkbox, the m2e-wtp plugin is displayed though.
Comment 1 Fred Bricon CLA 2011-05-11 11:27:53 EDT
> 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.
Comment 2 Igor Fedorenko CLA 2011-05-11 21:00:10 EDT
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.
Comment 3 Murray Waters CLA 2011-09-07 01:16:24 EDT
Is there a workaround for this? can the error be safely ignored?
Comment 4 Fred Bricon CLA 2011-11-07 20:28:52 EST
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".
Comment 6 Igor Fedorenko CLA 2013-09-28 23:32:12 EDT
closing old/stale bugreports
Comment 7 Denis Roy CLA 2021-04-19 13:22:57 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/