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/06/04 21:03:38 UTC

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

Author: schor
Date: Tue Jun  4 19:03:38 2013
New Revision: 1489566

URL: http://svn.apache.org/r1489566
Log:
[UIMA-2966] add plugin step that deletes m2e maven meta inf out of target/classes/META-INF...  if present.  I tried making this conditional on the existence of the files in a profile test, but maven profile file existence testing cannot refer to maven pom properties, and I needed project.artifactId etc, to form the proper file path. I also tried making the profile conditioned on the existence of a directory, but maven requires this to be a file I think.

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=1489566&r1=1489565&r2=1489566&view=diff
==============================================================================
--- uima/build/trunk/parent-pom/pom.xml (original)
+++ uima/build/trunk/parent-pom/pom.xml Tue Jun  4 19:03:38 2013
@@ -454,7 +454,7 @@ Copyright (c) 2003, 2006 IBM Corporation
             </execution>
           </executions>          
         </plugin>
-                
+
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
@@ -687,13 +687,30 @@ Copyright (c) 2003, 2006 IBM Corporation
         
       </plugin>
       
+      <plugin> <!-- https://issues.apache.org/jira/browse/UIMA-2966  -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>dup-meta-jar-cleanup</id>
+            <goals><goal>run</goal></goals>
+            <phase>prepare-package</phase>  <!--  before Jar plugin -->
+            <configuration>
+              <target>
+                <delete file="${project.build.directory}/classes/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml" quiet="true"/>
+                <delete file="${project.build.directory}/classes/META-INF/maven/${project.groupId}/${project.artifactId}/pom.properties" quiet="true"/>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>     
     
   </build>
   
   <!--reporting-->
   
-  <profiles>
+  <profiles>   
     
     <!-- ************************************************** -->
     <!-- * apache-release                                 * -->