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 2010/05/05 15:47:35 UTC

svn commit: r941287 - /uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml

Author: schor
Date: Wed May  5 13:47:34 2010
New Revision: 941287

URL: http://svn.apache.org/viewvc?rev=941287&view=rev
Log:
[UIMA-1756] move defaulting things into pluginManagement, switch mode of running felix to goal: manifest, so we can use normal jar packaging and get the apache license/notice files in there.  Turn off extra unused felix bundle executions

Modified:
    uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml

Modified: uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml
URL: http://svn.apache.org/viewvc/uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml?rev=941287&r1=941286&r2=941287&view=diff
==============================================================================
--- uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml (original)
+++ uima/build/trunk/parent-poms/parent-pom-uimaj-eclipse-plugins/pom.xml Wed May  5 13:47:34 2010
@@ -68,6 +68,8 @@
   </properties>
        
   <build>
+    <finalName>${project.artifactId}_${parsedVersion.osgiVersion}</finalName>         
+            
     <!-- resources are "merged" -->
         <!-- needed to copy resources, icons, and the plugin.xml to the result -->
     <resources>
@@ -83,28 +85,77 @@
         <directory>src/main/resources</directory>
       </resource>
     </resources>
-    
-    <plugins>
-      <!-- special eclipse:eclipse configuration for Eclipse plugins -->
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-eclipse-plugin</artifactId>
-        <version>2.4</version>
-        <configuration>
-          <manifest>.ignore</manifest>
-          <pde>true</pde>
-          <!-- set next to false because refs to runtime project
-               as a project don't work (because it is a library project,
-               and has no sources of its own 
-            
-            A consequence of this: If you change code a plugin depends on,
-            run "mvn install" on the changed code to get your plugin to
-            pick up the changes 
-            -->
-          <useProjectReferences>false</useProjectReferences>
-        </configuration>
-      </plugin>
-    </plugins>
+ 
+    <pluginManagement>
+      
+      <!-- run the felix plugin in manifest mode
+           because that plugin doesn't resolve
+           all properties e.g., parsedVersion.osgiVersion -->
+      <plugins>
+        <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <executions>
+            <execution>
+              <id>uima-bundle</id>
+              <goals><goal>manifest</goal></goals>
+              <phase>process-classes</phase>
+              <configuration>
+                <!-- we put the generate manifest in the spot where Eclipse 
+                     plugins think it will be -->
+               <manifestLocation>META-INF/</manifestLocation>
+              </configuration>
+            </execution>
+            <!-- turn off unneeded executions --> 
+            <execution>
+              <id>default-deploy</id>
+              <phase/>
+            </execution>
+            <execution>
+              <id>default-install</id>
+              <phase/>
+            </execution>
+            <execution>
+              <id>default-bundle</id>
+              <phase/>
+            </execution>
+          </executions>
+        </plugin>
+
+        <!-- pick up the manifest felix generates -->        
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-jar-plugin</artifactId>
+          <configuration>
+            <archive>
+              <manifestFile>META-INF/MANIFEST.MF</manifestFile>
+            </archive>
+          </configuration>       
+        </plugin>
+
+        <!-- special eclipse:eclipse configuration for Eclipse plugins -->        
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-eclipse-plugin</artifactId>
+          <version>2.4</version>
+          <configuration>
+            <manifest>.ignore</manifest>
+            <pde>true</pde>
+            <!-- set next to false because refs to runtime project
+                 as a project don't work (because it is a library project,
+                 and has no sources of its own 
+              
+              A consequence of this: If you change code a plugin depends on,
+              run "mvn install" on the changed code to get your plugin to
+              pick up the changes 
+              -->
+            <useProjectReferences>false</useProjectReferences>
+          </configuration>
+        </plugin>
+              
+      </plugins>
+    </pluginManagement>
+  
   </build>
 
 </project>
\ No newline at end of file