Author: djencks
Date: Tue May 12 00:45:46 2009
New Revision: 773742
URL: http://svn.apache.org/viewvc?rev=773742&view=rev
Log:
Update root pom to always run ianal plugin and supply configuration for
assembly plugin for source distros
Modified:
portals/portals-pom/trunk/pom.xml
Modified: portals/portals-pom/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/portals/portals-pom/trunk/pom.xml?rev=773742&r1=773741&r2=773742&view=diff
==============================================================================
--- portals/portals-pom/trunk/pom.xml (original)
+++ portals/portals-pom/trunk/pom.xml Tue May 12 00:45:46 2009
@@ -38,7 +38,7 @@
commercial-quality, and freely available Portal related software on a
wide variety of platforms and programming languages.
This project is managed in cooperation with various individuals
worldwide (both independent and company-affiliated experts),
who use the Internet to communicate, plan, and develop Portal software
and related documentation.
- </description>
+ </description>
<url>http://portals.apache.org</url>
<organization>
@@ -72,38 +72,87 @@
<artifactId>rat-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
</plugin>
+ <!-- basic assembly configuration to create a source archive -->
+ <!-- run the assembly plugin in project root poms, like this: -->
+ <!--
+ <profiles>
+ <profile>
+ <id>apache-release</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ -->
+ <!-- this should be unnecessary in the apache 7 pom -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-2</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>project</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>ianal-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>verify-legal-files</goal>
+ </goals>
+ <configuration>
+ <!-- Fail the build if any artifacts are missing legal files -->
+ <strict>true</strict>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
- <profiles>
+ <profiles>
<!--
We should execute this profile manually to make sure that all files in our
source code contain proper licenses.
This is very important and should not be skipped in any scenario. It is
very importnt for us to follow ASF policy.
Example: mvn -P prepare-release install
-->
<profile>
- <id>prepare-release</id>
+ <id>rat</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
- <artifactId>ianal-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>verify-legal-files</goal>
- </goals>
- <configuration>
- <!-- Fail the build if any artifacts are missing legal files
-->
- <strict>true</strict>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
<artifactId>rat-maven-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <!-- Used by maven-remote-resources-plugin -->
+ <exclude>src/main/appended-resources/META-INF/*</exclude>
+ <!-- Generated by maven-remote-resources-plugin -->
+ <exclude>velocity.log</exclude>
+ <!-- don't check anything in target -->
+ <exclude>target/*</exclude>
+ </excludes>
+ </configuration>
<executions>
<execution>
<phase>verify</phase>