You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jo...@apache.org on 2006/10/07 21:53:57 UTC
svn commit: r454001 - /jakarta/commons/trunks-proper/pom.xml
Author: jochen
Date: Sat Oct 7 12:53:56 2006
New Revision: 454001
URL: http://svn.apache.org/viewvc?view=rev&rev=454001
Log:
Replacing the resource for LICENSE.txt and NOTICE.txt with a use of the
maven-antrun-plugin. This allows to use the maven-source-plugin, which
has a bug, if a resource is using the base directory.
Modified:
jakarta/commons/trunks-proper/pom.xml
Modified: jakarta/commons/trunks-proper/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/trunks-proper/pom.xml?view=diff&rev=454001&r1=454000&r2=454001
==============================================================================
--- jakarta/commons/trunks-proper/pom.xml (original)
+++ jakarta/commons/trunks-proper/pom.xml Sat Oct 7 12:53:56 2006
@@ -74,17 +74,34 @@
<jdkLevel>1.3</jdkLevel>
</configuration>
</plugin>
+ <plugin>
+ <!-- This should possibly better be done by using a resource
+ definition. However, if we declare a resource with
+ ${basedir} as the base directory, then the
+ maven-source-plugin will add the whole directory to
+ its contents.
+ -->
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <configuration>
+ <tasks>
+ <copy todir="${project.build.outputDirectory}/META-INF">
+ <fileset dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ <include name="NOTICE.txt"/>
+ </fileset>
+ </copy>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
- <resources>
- <resource>
- <directory>${basedir}</directory>
- <includes>
- <include>NOTICE.txt</include>
- <include>LICENSE.txt</include>
- </includes>
- <targetPath>META-INF</targetPath>
- </resource>
- </resources>
</build>
<profiles>
<profile>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org