You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/08/07 19:50:20 UTC

svn commit: r563593 - /incubator/uima/uimaj/trunk/uimaj/pom.xml

Author: alally
Date: Tue Aug  7 10:50:19 2007
New Revision: 563593

URL: http://svn.apache.org/viewvc?view=rev&rev=563593
Log:
UIMA-521: https://issues.apache.org/jira/browse/UIMA-521
Changed maven build to add NOTICE, LICENSE, and DISCLAIMER files to source jars.

Modified:
    incubator/uima/uimaj/trunk/uimaj/pom.xml

Modified: incubator/uima/uimaj/trunk/uimaj/pom.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj/pom.xml?view=diff&rev=563593&r1=563592&r2=563593
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj/pom.xml (original)
+++ incubator/uima/uimaj/trunk/uimaj/pom.xml Tue Aug  7 10:50:19 2007
@@ -47,6 +47,23 @@
 		</dependency>
 	</dependencies>
 	<build>
+   <resources>
+			<!-- Add the LICENSE, NOTICE, and DISCLAIMER files from uimaj-distr/README
+        as resources to be included in the jars of all components.  This is so 
+        we don't need to have copies of these files in SVN for every component. -->     
+     <resource>
+       <directory>../uimaj-distr/src/main/readme</directory>
+       <includes>
+         <include>LICENSE</include>
+         <include>NOTICE</include>
+         <include>DISCLAIMER</include>
+       </includes>
+       <targetPath>META-INF</targetPath>
+     </resource>
+     <resource>
+       <directory>src/main/resources</directory>
+     </resource>
+   </resources>    
 		<pluginManagement>
 			<plugins>
 				<!-- v2.1 of the javadoc plugin needed for muilti-module javadoc build to work properly -->
@@ -70,29 +87,6 @@
 					<source>1.4</source>
 					<target>1.4</target>
 				</configuration>
-			</plugin>
-			<!-- We use and ant task to copy the LICENSE, NOTICE, and DISCLAIMER files
-				from a single location in uimaj-distr into the target/classes/META-INF
-				directory of all components.  In theory the Maven resources plugin is
-				supposed to do this, but we have not been able to get it to work. -->
-			<plugin>
-				<artifactId>maven-antrun-plugin</artifactId>
-				<executions>
-					<execution>
-						<phase>process-resources</phase>
-						<configuration>
-							<tasks>
-								<copy todir="target/classes/META-INF">
-									<fileset dir="../uimaj-distr/src/main/readme"
-										includes="LICENSE NOTICE DISCLAIMER"/>
-								</copy>
-							</tasks>
-						</configuration>
-						<goals>
-							<goal>run</goal>
-						</goals>
-					</execution>
-				</executions>
 			</plugin>
 		</plugins>
 	</build>