4444import org .apache .maven .plugin .eclipse .writers .EclipseAjdtWriter ;
4545import org .apache .maven .plugin .eclipse .writers .EclipseClasspathWriter ;
4646import org .apache .maven .plugin .eclipse .writers .EclipseManifestWriter ;
47- import org .apache .maven .plugin .eclipse .writers .EclipseOSGiManifestWriter ;
4847import org .apache .maven .plugin .eclipse .writers .EclipseProjectWriter ;
4948import org .apache .maven .plugin .eclipse .writers .EclipseWriterConfig ;
5049import org .apache .maven .plugin .eclipse .writers .workspace .EclipseSettingsWriter ;
@@ -129,10 +128,6 @@ public class EclipsePlugin
129128
130129 private static final String BUILDER_WST_FACET = "org.eclipse.wst.common.project.facet.core.builder" ; //$NON-NLS-1$
131130
132- private static final String BUILDER_PDE_MANIFEST = "org.eclipse.pde.ManifestBuilder" ; //$NON-NLS-1$
133-
134- private static final String BUILDER_PDE_SCHEMA = "org.eclipse.pde.SchemaBuilder" ; //$NON-NLS-1$
135-
136131 private static final String BUILDER_AJDT_CORE_JAVA = "org.eclipse.ajdt.core.ajbuilder" ; //$NON-NLS-1$
137132
138133 private static final String NATURE_WST_MODULE_CORE_NATURE = "org.eclipse.wst.common.modulecore.ModuleCoreNature" ; //$NON-NLS-1$
@@ -141,16 +136,12 @@ public class EclipsePlugin
141136
142137 private static final String NATURE_JEM_WORKBENCH_JAVA_EMF = "org.eclipse.jem.workbench.JavaEMFNature" ; //$NON-NLS-1$
143138
144- private static final String NATURE_PDE_PLUGIN = "org.eclipse.pde.PluginNature" ; //$NON-NLS-1$
145-
146139 private static final String NATURE_AJDT_CORE_JAVA = "org.eclipse.ajdt.ui.ajnature" ; //$NON-NLS-1$
147140
148141 protected static final String COMMON_PATH_JDT_LAUNCHING_JRE_CONTAINER = "org.eclipse.jdt.launching.JRE_CONTAINER" ; //$NON-NLS-1$
149142
150143 protected static final String ASPECTJ_RT_CONTAINER = "org.eclipse.ajdt.core.ASPECTJRT_CONTAINER" ; //$NON-NLS-1$
151144
152- protected static final String REQUIRED_PLUGINS_CONTAINER = "org.eclipse.pde.core.requiredPlugins" ; //$NON-NLS-1$
153-
154145 // warning, order is important for binary search
155146 public static final String [] WTP_SUPPORTED_VERSIONS = new String [] { "1.0" , "1.5" , "2.0" , "R7" , "none" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
156147
@@ -334,16 +325,6 @@ public class EclipsePlugin
334325 */
335326 private String wtpContextName ;
336327
337- /**
338- * Is it an PDE project? If yes, the plugin adds the necessary natures and build commands to the .project file.
339- * Additionally it copies all libraries to a project local directory and references them instead of referencing the
340- * files in the local Maven repository. It also ensured that the "Bundle-Classpath" in META-INF/MANIFEST.MF is
341- * synchronized.
342- *
343- * @parameter expression="${eclipse.pde}" default-value="false"
344- */
345- private boolean pde ;
346-
347328 /**
348329 * Is it an AJDT project? If yes, the plugin adds the necessary natures and build commands to the .project file.
349330 */
@@ -647,11 +628,6 @@ protected final boolean isJavaProject()
647628 return isJavaProject ;
648629 }
649630
650- protected final boolean isPdeProject ()
651- {
652- return pde ;
653- }
654-
655631 /**
656632 * Getter for <code>buildcommands</code>.
657633 *
@@ -921,8 +897,7 @@ public final boolean setup()
921897 // ear projects don't contain java sources
922898 // pde projects are always java projects
923899 isJavaProject =
924- pde
925- || ( Constants .LANGUAGE_JAVA .equals ( artifactHandler .getLanguage () ) && !Constants .PROJECT_PACKAGING_EAR .equals ( packaging ) );
900+ ( Constants .LANGUAGE_JAVA .equals ( artifactHandler .getLanguage () ) && !Constants .PROJECT_PACKAGING_EAR .equals ( packaging ) );
926901
927902 if ( sourceIncludes == null )
928903 {
@@ -1100,7 +1075,8 @@ private boolean validate()
11001075
11011076 if ( "eclipse-plugin" .equals ( packaging ) )
11021077 {
1103- pde = true ;
1078+ getLog ().info ( Messages .getString ( "EclipsePlugin.pdepackaging" ) ); //$NON-NLS-1$
1079+ return false ;
11041080 }
11051081
11061082 if ( eclipseProjectDir == null )
@@ -1215,12 +1191,6 @@ public final void writeConfiguration( IdeDependency[] deps )
12151191 new EclipseWtpApplicationXMLWriter ().init ( getLog (), config ).write ();
12161192 }
12171193
1218- if ( pde )
1219- {
1220- this .getLog ().info ( "The Maven Eclipse plugin runs in 'pde'-mode." );
1221- new EclipseOSGiManifestWriter ().init ( getLog (), config ).write ();
1222- }
1223-
12241194 // NOTE: This one MUST be after EclipseClasspathwriter, and possibly others,
12251195 // since currently EclipseClasspathWriter does some magic to detect nested
12261196 // output folders and modifies the configuration by adding new (Ant) builders.
@@ -1382,7 +1352,6 @@ protected final EclipseWriterConfig createEclipseWriterConfig( IdeDependency[] d
13821352 config .setEclipseProjectDirectory ( eclipseProjectDir );
13831353 config .setLocalRepository ( localRepository );
13841354 config .setOSGIManifestFile ( manifest );
1385- config .setPde ( pde );
13861355 config .setProject ( project );
13871356 config .setProjectBaseDir ( projectBaseDir );
13881357 config .setProjectnatures ( projectnatures );
@@ -1516,11 +1485,6 @@ protected void fillDefaultNatures( String packaging )
15161485 }
15171486 }
15181487
1519- if ( pde )
1520- {
1521- projectnatures .add ( NATURE_PDE_PLUGIN );
1522- }
1523-
15241488 }
15251489
15261490 /**
@@ -1542,10 +1506,6 @@ protected void fillDefaultClasspathContainers( String packaging )
15421506 + getWorkspaceConfiguration ().getDefaultClasspathContainer () );
15431507 classpathContainers .add ( getWorkspaceConfiguration ().getDefaultClasspathContainer () );
15441508 }
1545- if ( pde )
1546- {
1547- classpathContainers .add ( REQUIRED_PLUGINS_CONTAINER );
1548- }
15491509
15501510 if ( ajdt )
15511511 {
@@ -1597,12 +1557,6 @@ protected void fillDefaultBuilders( String packaging )
15971557 // WTP 0.7 builder
15981558 buildcommands .add ( new BuildCommand ( BUILDER_WST_COMPONENT_STRUCTURAL_DEPENDENCY_RESOLVER ) );
15991559 }
1600-
1601- if ( pde )
1602- {
1603- buildcommands .add ( new BuildCommand ( BUILDER_PDE_MANIFEST ) );
1604- buildcommands .add ( new BuildCommand ( BUILDER_PDE_SCHEMA ) );
1605- }
16061560 }
16071561
16081562 public final EclipseSourceDir [] buildDirectoryList ( MavenProject project , File basedir , File buildOutputDirectory )
0 commit comments