Configure license plugin
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Mar 2012 16:54:03 +0000 (16:54 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 9 Mar 2012 16:54:03 +0000 (16:54 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@5191 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

pom.xml

diff --git a/pom.xml b/pom.xml
index e0811005a8259fb6e2fd423e343195ede35de666..644f5b2f087805fc8a690506d0225d09e88d9994 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -365,6 +365,28 @@ limitations under the License.
                                        <releaseProfiles>rpmbuild,rpmbuild-tp,el5</releaseProfiles>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <groupId>com.mycila.maven-license-plugin</groupId>
+                               <artifactId>maven-license-plugin</artifactId>
+                               <configuration>
+                                       <header>license-apache2-header.txt</header>
+                                       <failIfMissing>true</failIfMissing>
+                                       <aggregate>true</aggregate>
+                                       <includes>
+                                               <include>src/**/*.java</include>
+                                               <include>src/**/*.xml</include>
+                                       </includes>
+                                       <excludes>
+                                               <exclude>**/springutil/**</exclude>
+                                               <exclude>**/qooxdoo-sdk/**</exclude>
+                                       </excludes>
+                                       <useDefaultExcludes>true</useDefaultExcludes>
+                                       <mapping>
+                                               <java>SLASHSTAR_STYLE</java>
+                                               <xml>XML_STYLE</xml>
+                                       </mapping>
+                               </configuration>
+                       </plugin>
                </plugins>
                <!-- NOTE: This is just a vision for the future, it's not yet implemented: 
                        see MNG-2216 -->