You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by lr...@apache.org on 2016/05/21 04:23:13 UTC

incubator-systemml git commit: [MINOR] Move M2E plugin to it's own profile

Repository: incubator-systemml
Updated Branches:
  refs/heads/master 59e961fd8 -> 14131d343


[MINOR] Move M2E plugin to it's own profile

The M2E plugin was breaking the build while trying to
perform a release, and this is the recommended workaround.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/14131d34
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/14131d34
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/14131d34

Branch: refs/heads/master
Commit: 14131d3430002dd2e88b15476ef8055fcad6bb5f
Parents: 59e961f
Author: Luciano Resende <lr...@apache.org>
Authored: Fri May 20 21:22:13 2016 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Fri May 20 21:22:13 2016 -0700

----------------------------------------------------------------------
 pom.xml | 70 ++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 42 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/14131d34/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index eb79d31..c89eb8f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -386,34 +386,6 @@
 				</configuration>
 			</plugin>
 
-		<!-- Prevent m2e warnings about the use of maven-remote-resources-plugin
-		in the Maven archetype that we currently use for this project. -->
-			<plugin>
-				<groupId>org.eclipse.m2e</groupId>
-				<artifactId>lifecycle-mapping</artifactId>
-				<version>1.0.0</version>
-				<configuration>
-					<lifecycleMappingMetadata>
-						<pluginExecutions>
-							<pluginExecution>
-								<pluginExecutionFilter>
-									<groupId>org.apache.maven.plugins</groupId>
-									<artifactId>maven-remote-resources-plugin</artifactId>
-									<versionRange>[1.0,)</versionRange>
-									<goals>
-										<goal>process</goal>
-									</goals>
-								</pluginExecutionFilter>
-								<action>
-									<ignore>
-									</ignore>
-								</action>
-							</pluginExecution>
-						</pluginExecutions>
-					</lifecycleMappingMetadata>
-				</configuration>
-			</plugin>
-
 			<plugin>
 				<artifactId>maven-clean-plugin</artifactId>
 				<version>3.0.0</version>
@@ -509,6 +481,48 @@
 		</profile>
 
 		<profile>
+			<id>eclipse-only</id>
+			<activation>
+				<property>
+					<name>m2e.version</name>
+				</property>
+			</activation>
+			<build>
+				<pluginManagement>
+					<plugins>
+						<!-- Prevent m2e warnings about the use of maven-remote-resources-plugin
+                        in the Maven archetype that we currently use for this project. -->
+						<plugin>
+							<groupId>org.eclipse.m2e</groupId>
+							<artifactId>lifecycle-mapping</artifactId>
+							<version>1.0.0</version>
+							<configuration>
+								<lifecycleMappingMetadata>
+									<pluginExecutions>
+										<pluginExecution>
+											<pluginExecutionFilter>
+												<groupId>org.apache.maven.plugins</groupId>
+												<artifactId>maven-remote-resources-plugin</artifactId>
+												<versionRange>[1.0,)</versionRange>
+												<goals>
+													<goal>process</goal>
+												</goals>
+											</pluginExecutionFilter>
+											<action>
+												<ignore>
+												</ignore>
+											</action>
+										</pluginExecution>
+									</pluginExecutions>
+								</lifecycleMappingMetadata>
+							</configuration>
+						</plugin>
+					</plugins>
+				</pluginManagement>
+			</build>
+		</profile>
+
+		<profile>
 			<id>rat</id>
 			<build>
 				<defaultGoal>clean org.apache.rat:apache-rat-plugin:check</defaultGoal>