Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-02-26 05:56:27 +0000
committerIgor Fedorenko2011-02-26 05:56:27 +0000
commit83bba72a8c3e6702df1f642be342c73296444796 (patch)
treec773b28f72f24e306bbcb6c3510dad896981dfc0 /org.eclipse.m2e.core/plugin.xml
parenteb6c4ed746a1eac5995b552585bef2e368f8a8a3 (diff)
downloadm2e-core-83bba72a8c3e6702df1f642be342c73296444796.tar.gz
m2e-core-83bba72a8c3e6702df1f642be342c73296444796.tar.xz
m2e-core-83bba72a8c3e6702df1f642be342c73296444796.zip
337010 better detect java projects
Java project project configurator is enabled for maven-compiler-plugin with compilerId=javac regardless of project packaging type. To allow such conditional enablement, introduced new optional <pluginExecutionFilter> <parameters> element. For example <parameters> <compilerId>javac</compilerId> </parameters> Current implementation uses string comparison to match parameter value, i.e. ``javac'', to the corresponding mojo execution configuration parameter, i.e. ``compilerId'', and ignored plugin execution mapping if values do not match. Additionally, relaxed requirement to have specific lifecycle mapping for project packaging type. New lifecycle mapping with id=DEFAULT will be used for projects without specific lifecycle mapping. Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
Diffstat (limited to 'org.eclipse.m2e.core/plugin.xml')
-rw-r--r--org.eclipse.m2e.core/plugin.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/plugin.xml b/org.eclipse.m2e.core/plugin.xml
index e7ad015d..672c913e 100644
--- a/org.eclipse.m2e.core/plugin.xml
+++ b/org.eclipse.m2e.core/plugin.xml
@@ -104,6 +104,15 @@
id="NULL"
name="%lifecycleMapping.empty.name">
</lifecycleMapping>
+ <lifecycleMapping
+ class="org.eclipse.m2e.core.internal.lifecyclemapping.DefaultLifecycleMapping"
+ id="DEFAULT"
+ name="%lifecycleMapping.default.name">
+ </lifecycleMapping>
+ <lifecycleMapping
+ class="org.eclipse.m2e.core.internal.lifecyclemapping.DefaultLifecycleMapping"
+ id="DEFAULT">
+ </lifecycleMapping>
</extension>
<extension
point="org.eclipse.m2e.core.mavenComponentContributors">

Back to the top