You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2013/07/08 21:03:08 UTC

svn commit: r1500883 - /uima/build/trunk/parent-pom/pom.xml

Author: schor
Date: Mon Jul  8 19:03:07 2013
New Revision: 1500883

URL: http://svn.apache.org/r1500883
Log:
[UIMA-3047] [UIMA-3053] move the m2e config to a profile that is activated only for m2e environments - reduces noise for non-m2e builds.  Mark the enforcer plugin m2e-ignore to reduce warnings in Eclipse builds.  Remove the enforcer version override (because it's not needed, I think, and if present, gives a warning message)

Modified:
    uima/build/trunk/parent-pom/pom.xml

Modified: uima/build/trunk/parent-pom/pom.xml
URL: http://svn.apache.org/viewvc/uima/build/trunk/parent-pom/pom.xml?rev=1500883&r1=1500882&r2=1500883&view=diff
==============================================================================
--- uima/build/trunk/parent-pom/pom.xml (original)
+++ uima/build/trunk/parent-pom/pom.xml Mon Jul  8 19:03:07 2013
@@ -296,97 +296,6 @@ Copyright (c) 2003, 2006 IBM Corporation
     <pluginManagement>
       <plugins>
       
-        <!--This plugin's configuration is used to store Eclipse m2e settings 
-            only. It has no influence on the Maven build itself. -->
-	      <plugin>
-	        <groupId>org.eclipse.m2e</groupId>
-	        <artifactId>lifecycle-mapping</artifactId>
-	        <version>1.0.0</version>
-	        <configuration>
-	          <lifecycleMappingMetadata>
-	            <pluginExecutions>
-	            
-                <!-- ***************************** -->
-                <!-- IGNORE remote resources       -->
-                <!-- ***************************** -->
-                <pluginExecution>
-                  <pluginExecutionFilter>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>
-                      maven-remote-resources-plugin
-                    </artifactId>
-                    <versionRange>[1,)</versionRange>
-                    <goals>
-                      <goal>process</goal>
-                      <goal>bundle</goal>
-                    </goals>
-                  </pluginExecutionFilter>
-                  <action>
-                    <ignore />
-                  </action>
-                </pluginExecution>
-                
-                <!-- ***************************** -->
-                <!-- EXECUTE parse-date-time       -->
-                <!-- ***************************** -->
-	              <pluginExecution>
-	                <pluginExecutionFilter>
-	                  <groupId>org.apache.uima</groupId>
-	                  <artifactId>
-	                    uima-build-helper-maven-plugin
-	                  </artifactId>
-	                  <versionRange>[2,)</versionRange>
-	                  <goals>
-	                    <goal>parse-date-time</goal>
-	                  </goals>
-	                </pluginExecutionFilter>
-	                <action>
-	                  <execute />
-	                </action>
-	              </pluginExecution>
-	              
-                <!-- ******************************* -->
-                <!-- IGNORE dependency copy / unpack -->
-                <!-- ******************************* -->
-                <pluginExecution>
-                  <pluginExecutionFilter>
-	                  <groupId>org.apache.maven.plugins</groupId>
-	                  <artifactId>maven-dependency-plugin</artifactId>
-	                  <versionRange>[2,)</versionRange>
-	                  <goals>
-	                    <goal>unpack</goal>
-	                    <goal>copy-dependencies</goal>
-	                    <goal>unpack-dependencies</goal>
-	                  </goals>
-	                </pluginExecutionFilter>
-	                <action>
-                    <ignore />
-	                </action>
-	              </pluginExecution>
-
-                <!-- ******************************* -->
-                <!-- IGNORE clearing old Manifest.MF -->
-                <!-- at top level, needed by         -->    
-                <!-- maven bundle plugin             -->
-                <!-- ******************************* -->
-                <pluginExecution>
-                	<pluginExecutionFilter>
-                		<groupId>org.apache.maven.plugins</groupId>
-                		<artifactId>maven-antrun-plugin</artifactId>
-                		<versionRange>[1.6,)</versionRange>
-                		<goals>
-                			<goal>run</goal>
-                		</goals>
-                	</pluginExecutionFilter>
-                	<action>
-                		<ignore />
-                	</action>
-                </pluginExecution>
-	            </pluginExecutions>
-	          </lifecycleMappingMetadata>
-	        </configuration>
-	      </plugin>
-      
         <!-- assembly plugin 
              Disable running assembly:assembly with
              warning message to use install instead -->
@@ -426,7 +335,7 @@ Copyright (c) 2003, 2006 IBM Corporation
           <artifactId>maven-dependency-plugin</artifactId>
           <version>2.8</version> <!-- see https://issues.apache.org/jira/browse/UIMA-2963 -->
         </plugin>
-             
+        
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-javadoc-plugin</artifactId>
@@ -633,7 +542,6 @@ Copyright (c) 2003, 2006 IBM Corporation
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.2</version>
         <executions>
           <execution>
             <id>enforce-versions</id>
@@ -2258,11 +2166,136 @@ Copyright (c) 2003, 2006 IBM Corporation
         
       </build>
     </profile>
-       
+    
+    <profile>
+      <id>m2e</id>
+      <activation>
+        <property>
+          <name>m2e.version</name>
+        </property>
+      </activation>
+      <build>
+        <pluginManagement>
+		      <plugins>
+		      
+		        <!--This plugin's configuration is used to store Eclipse m2e settings 
+		            only. It has no influence on the Maven build itself. -->
+		        <plugin>
+		          <groupId>org.eclipse.m2e</groupId>
+		          <artifactId>lifecycle-mapping</artifactId>
+		          <version>1.0.0</version>
+		          <configuration>
+		            <lifecycleMappingMetadata>
+		              <pluginExecutions>
+		              
+		                <!-- ***************************** -->
+		                <!-- IGNORE remote resources       -->
+		                <!-- ***************************** -->
+		                <pluginExecution>
+		                  <pluginExecutionFilter>
+		                    <groupId>org.apache.maven.plugins</groupId>
+		                    <artifactId>
+		                      maven-remote-resources-plugin
+		                    </artifactId>
+		                    <versionRange>[1,)</versionRange>
+		                    <goals>
+		                      <goal>process</goal>
+		                      <goal>bundle</goal>
+		                    </goals>
+		                  </pluginExecutionFilter>
+		                  <action>
+		                    <ignore />
+		                  </action>
+		                </pluginExecution>
+		                
+		                <!-- ***************************** -->
+		                <!-- EXECUTE parse-date-time       -->
+		                <!-- ***************************** -->
+		                <pluginExecution>
+		                  <pluginExecutionFilter>
+		                    <groupId>org.apache.uima</groupId>
+		                    <artifactId>
+		                      uima-build-helper-maven-plugin
+		                    </artifactId>
+		                    <versionRange>[2,)</versionRange>
+		                    <goals>
+		                      <goal>parse-date-time</goal>
+		                    </goals>
+		                  </pluginExecutionFilter>
+		                  <action>
+		                    <execute />
+		                  </action>
+		                </pluginExecution>
+		                
+		                <!-- ******************************* -->
+		                <!-- IGNORE dependency copy / unpack -->
+		                <!-- ******************************* -->
+		                <pluginExecution>
+		                  <pluginExecutionFilter>
+		                    <groupId>org.apache.maven.plugins</groupId>
+		                    <artifactId>maven-dependency-plugin</artifactId>
+		                    <versionRange>[2,)</versionRange>
+		                    <goals>
+		                      <goal>unpack</goal>
+		                      <goal>copy-dependencies</goal>
+		                      <goal>unpack-dependencies</goal>
+		                    </goals>
+		                  </pluginExecutionFilter>
+		                  <action>
+		                    <ignore />
+		                  </action>
+		                </pluginExecution>
+		                
+		                <!-- *********************************************** -->
+		                <!-- IGNORE enforcer - to avoid warning message      -->
+		                <!-- https://issues.apache.org/jira/browse/UIMA-3053 -->
+		                <!-- *********************************************** -->
+		                <pluginExecution>
+		                  <pluginExecutionFilter>
+		                    <groupId>org.apache.maven.plugins</groupId>
+		                    <artifactId>maven-enforcer-plugin</artifactId>
+		                    <versionRange>[1,)</versionRange>
+		                    <goals>
+		                      <goal>enforce</goal>
+		                    </goals>
+		                  </pluginExecutionFilter>
+		                  <action>
+		                    <ignore />
+		                  </action>
+		                </pluginExecution>		                
+		
+		                <!-- ******************************* -->
+		                <!-- IGNORE clearing old Manifest.MF -->
+		                <!-- at top level, needed by         -->    
+		                <!-- maven bundle plugin             -->
+		                <!-- ******************************* -->
+		                <pluginExecution>
+		                  <pluginExecutionFilter>
+		                    <groupId>org.apache.maven.plugins</groupId>
+		                    <artifactId>maven-antrun-plugin</artifactId>
+		                    <versionRange>[1.6,)</versionRange>
+		                    <goals>
+		                      <goal>run</goal>
+		                    </goals>
+		                  </pluginExecutionFilter>
+		                  <action>
+		                    <ignore />
+		                  </action>
+		                </pluginExecution>
+		              </pluginExecutions>
+		            </lifecycleMappingMetadata>
+		          </configuration>
+		        </plugin>
+		      </plugins>
+		    </pluginManagement>
+      </build>
+    </profile>      
   </profiles>
-       
+ 
+  <!--  Was used for v 5, not normally needed       
   <modules>
     <module>../uima-build-resources</module>
   	<module>../uima-build-helper-maven-plugin</module>
   </modules>
+  -->
 </project>
\ No newline at end of file