diff options
author | Fred Bricon | 2012-09-08 12:49:49 +0000 |
---|---|---|
committer | Fred Bricon | 2012-12-05 18:30:26 +0000 |
commit | 20707859f37a73e10e91b6beae1a43b371af4640 (patch) | |
tree | bf0f334110297a6bc98650a343cc14928250d916 /org.eclipse.m2e.jdt/plugin.xml | |
parent | f62aae5a9f3f90676e40f1b7403ed0ec075828cb (diff) | |
download | m2e-core-20707859f37a73e10e91b6beae1a43b371af4640.tar.gz m2e-core-20707859f37a73e10e91b6beae1a43b371af4640.tar.xz m2e-core-20707859f37a73e10e91b6beae1a43b371af4640.zip |
374742 : limit conversion to specific packagings
AbstractProjectConversionParticipant can now declare a set of supported
Maven packagings, contributed via an extension point.
The conversion manager now checks the requested packaging is compatible
with a given conversion participant. If no restrictions are defined or the
given packaging is listed in the restricted packagings, then it's considered
compatible.
For JDT project conversion, only the jar packaging is
defined by default for org.eclipse.m2e.jdt.javaProjectConversionParticipant.
So if a Java Project is converted to an eclipse-plugin for instance, since
eclipse-plugin is not declared as compatible packaging for
org.eclipse.m2e.jdt.javaProjectConversionParticipant by default, no
maven-compiler-plugin configuration will be added during the project
conversion.
More compatible packagings can be declared, if necessary, by 3rd party
plugins, using the <conversionParticipantConfiguration> element.
<compatiblePackagings> is optional since the extension point could be used
to add additional restriction policies
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=388981).
It's recommended AbstractProjectConversionParticipant implementations
declare at least one restricted packaging, as 3rd party plugins could
introduce restrictions when none were originally declared.
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.jdt/plugin.xml')
-rw-r--r-- | org.eclipse.m2e.jdt/plugin.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.m2e.jdt/plugin.xml b/org.eclipse.m2e.jdt/plugin.xml index 710dc209..698fd2b2 100644 --- a/org.eclipse.m2e.jdt/plugin.xml +++ b/org.eclipse.m2e.jdt/plugin.xml @@ -365,6 +365,12 @@ id="org.eclipse.m2e.jdt.javaProjectConversionParticipant" name="%java.conversion.participant.name" nature="org.eclipse.jdt.core.javanature"> - </projectConversionParticipant> + </projectConversionParticipant> + + <conversionParticipantConfiguration + conversionParticipantId="org.eclipse.m2e.jdt.javaProjectConversionParticipant" + compatiblePackagings="jar" + /> </extension> + </plugin> |