Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-09-13 17:28:42 -0400
committerIgor Fedorenko2011-10-17 13:38:02 -0400
commit00d08e894558e0f081bb136b50b6b567234e4d06 (patch)
tree981128e97a2a050b3bc82e2c6e3ae5a6909f34b5 /org.eclipse.m2e.discovery
parentfc6b8cfbe1fc7a5c50881bce0ec3d0a5fb2dbbf3 (diff)
downloadm2e-core-00d08e894558e0f081bb136b50b6b567234e4d06.tar.gz
m2e-core-00d08e894558e0f081bb136b50b6b567234e4d06.tar.xz
m2e-core-00d08e894558e0f081bb136b50b6b567234e4d06.zip
335711 read lifecycle mapping metadata from maven-plugin artifact
When calculating buildi lifecycle mapping, m2e will check if main maven-plugin artifact has META-INF/m2e/lifecycle-mapping-metadata.xml and will use this resource as additional metadata source. New lifecycle mapping metadata sources priorities 1. this pom embedded, this pom referenced, parent embedded, parent referenced, grand parent embedded... 2. sources contributed by eclipse extensions 3. maven-plugin embedded metadata 4. default source, if present Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.discovery')
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
index 658fbda9..153eb80a 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryService.java
@@ -181,7 +181,7 @@ public class MavenDiscoveryService implements IMavenDiscoveryUI, IMavenDiscovery
}
List<MappingMetadataSource> metadataSources = LifecycleMappingFactory.getProjectMetadataSources(request,
- mavenProject, sources, false, monitor);
+ mavenProject, sources, mojoExecutions, false, monitor);
LifecycleMappingFactory.calculateEffectiveLifecycleMappingMetadata(mappingResult, request, metadataSources,
mavenProject, mojoExecutions, false);

Back to the top