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/12/02 18:12:58 UTC
svn commit: r1041467 - /uima/build/trunk/parent-pom/pom.xml
Author: schor
Date: Thu Dec 2 17:12:58 2010
New Revision: 1041467
URL: http://svn.apache.org/viewvc?rev=1041467&view=rev
Log:
[UIMA-1959] add common build profile for Eclipse Features
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=1041467&r1=1041466&r2=1041467&view=diff
==============================================================================
--- uima/build/trunk/parent-pom/pom.xml (original)
+++ uima/build/trunk/parent-pom/pom.xml Thu Dec 2 17:12:58 2010
@@ -1443,6 +1443,58 @@ Copyright (c) 2003, 2006 IBM Corporation
</pluginManagement>
</build>
</profile>
+
+ <!-- ************************************ -->
+ <!-- * Build Eclipse Feature * -->
+ <!-- ************************************ -->
+ <profile>
+ <id>build eclipse features</id>
+ <activation>
+ <file>
+ <exists>marker-file-identifying-eclipse-feature</exists>
+ </file>
+ </activation>
+ <build>
+ <finalName>${project.artifactId}_${parsedVersion.osgiVersion}</finalName>
+ <!-- turn on filtering for these resources -->
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>feature.properties</include>
+ <include>feature.xml</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+
+ <plugins>
+ <!-- filter the feature.xml to have the right version info
+ for Eclipse at the top level-->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>filter feature.xml</id>
+ <!-- run before process-resources, which uses this result -->
+ <phase>generate-resources</phase>
+ <goals><goal>copy-resources</goal></goals>
+ <configuration>
+ <outputDirectory>${basedir}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes><include>feature.xml</include></includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<!-- **************************************** -->
<!-- * Build Simple Project Binary Assembly * -->
@@ -1519,6 +1571,7 @@ Copyright (c) 2003, 2006 IBM Corporation
</build>
</profile>
+
</profiles>
</project>
\ No newline at end of file