Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-01-10 22:08:55 +0000
committerIgor Fedorenko2011-01-10 22:10:44 +0000
commit31b68b7b2b8f36c0a5e35438a89585f6571610c3 (patch)
tree699696c83932e1b20f4beccc33eb808aa74162ec /org.eclipse.m2e.jdt
parentca30243f2719f6ba019ad91a6320b4c098617e68 (diff)
downloadm2e-core-31b68b7b2b8f36c0a5e35438a89585f6571610c3.tar.gz
m2e-core-31b68b7b2b8f36c0a5e35438a89585f6571610c3.tar.xz
m2e-core-31b68b7b2b8f36c0a5e35438a89585f6571610c3.zip
moved lifecycle mapping configuration to a separate extension point
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.jdt')
-rw-r--r--org.eclipse.m2e.jdt/lifecycle-mapping-metadata.xml28
-rw-r--r--org.eclipse.m2e.jdt/plugin.xml38
2 files changed, 32 insertions, 34 deletions
diff --git a/org.eclipse.m2e.jdt/lifecycle-mapping-metadata.xml b/org.eclipse.m2e.jdt/lifecycle-mapping-metadata.xml
new file mode 100644
index 00000000..eff31290
--- /dev/null
+++ b/org.eclipse.m2e.jdt/lifecycle-mapping-metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lifecycleMappingMetadata>
+ <lifecycleMappings>
+
+ <lifecycleMapping>
+ <packagingType>jar</packagingType>
+ <lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping</lifecycleMappingId>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <versionRange>[2.0,)</versionRange>
+ <goals>
+ <goal>compile</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <configurator>
+ <id>org.eclipse.m2e.jdt.javaConfigurator</id>
+ </configurator>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMapping>
+ </lifecycleMappings>
+</lifecycleMappingMetadata>
diff --git a/org.eclipse.m2e.jdt/plugin.xml b/org.eclipse.m2e.jdt/plugin.xml
index dc4f9235..000669b9 100644
--- a/org.eclipse.m2e.jdt/plugin.xml
+++ b/org.eclipse.m2e.jdt/plugin.xml
@@ -13,40 +13,7 @@
<lifecycleMapping
class="org.eclipse.m2e.jdt.internal.JarLifecycleMapping"
id="org.eclipse.m2e.jdt.JarLifecycleMapping"
- name="%lifecycleMapping.jar.name"
- packaging-type="jar">
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <versionRange>[2.0,)</versionRange>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <configurator>
- <id>org.eclipse.m2e.jdt.javaConfigurator</id>
- </configurator>
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <versionRange>[2.4,)</versionRange>
- <goals>
- <goal>resources</goal>
- <goal>testResources</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <configurator>
- <id>org.eclipse.m2e.core.project.configurator.MavenResourcesProjectConfigurator</id>
- </configurator>
- </action>
- </pluginExecution>
+ name="%lifecycleMapping.jar.name">
</lifecycleMapping>
</extension>
@@ -199,5 +166,8 @@
lifecycleMappingId="jar">
</lifecycleMappingPropertyPage>
</extension>
+ <extension
+ point="org.eclipse.m2e.core.lifecycleMappingMetadataSource">
+ </extension>
</plugin>

Back to the top