You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2010/01/14 16:27:13 UTC
svn commit: r899237 - in /maven/plugins/trunk/maven-eclipse-plugin: pom.xml
src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java
Author: jvanzyl
Date: Thu Jan 14 15:27:13 2010
New Revision: 899237
URL: http://svn.apache.org/viewvc?rev=899237&view=rev
Log:
MECLIPSE-632: Eclipse files generated by the maven-eclipse-plugin now clearly state they are not compatible with M2Eclipse. M2Eclipse can detect this and will communicate this to the user accordingly.
Modified:
maven/plugins/trunk/maven-eclipse-plugin/pom.xml
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java
Modified: maven/plugins/trunk/maven-eclipse-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/pom.xml?rev=899237&r1=899236&r2=899237&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/pom.xml Thu Jan 14 15:27:13 2010
@@ -27,7 +27,7 @@
<version>14</version>
</parent>
<artifactId>maven-eclipse-plugin</artifactId>
- <version>2.8-SNAPSHOT</version>
+ <version>2.7</version>
<packaging>maven-plugin</packaging>
<name>Maven Eclipse Plugin</name>
<description>The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder) from a POM.</description>
Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java?rev=899237&r1=899236&r2=899237&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseProjectWriter.java Thu Jan 14 15:27:13 2010
@@ -217,6 +217,15 @@
writer.endElement();
+ //
+ // Project files that are generated with m-p-e cannot be supported by M2Eclipse
+ //
+ writer.startElement( "comment" ); //$NON-NLS-1$
+
+ writer.writeText( "NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse." );
+
+ writer.endElement();
+
writer.startElement( "projects" ); //$NON-NLS-1$
// referenced projects should not be added for plugins