Add license check plugin to root pom. Disabled for the entire project, except for poms that override it (opendaylight, nvp)

This commit is contained in:
Hugo Trippaers 2014-01-22 11:15:39 +01:00
parent 33eaa4f633
commit d3cd73d861
4 changed files with 70 additions and 27 deletions

View File

@ -34,6 +34,21 @@
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>cloudstack-checklicence</id>
<phase>process-classes</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>

View File

@ -48,35 +48,17 @@
</testResources>
<plugins>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>cloudstack-checklicence</id>
<phase>process-classes</phase>
<goals>
<goal>format</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<strictCheck>true</strictCheck>
<aggregate>true</aggregate>
<header>../../../LICENSE.header</header>
<mapping>
<xml>XML_STYLE</xml>
    <java>DOUBLESLASH_STYLE</java>
    <clj>SEMICOLON_STYLE</clj>
</mapping>
<useDefaultExcludes>false</useDefaultExcludes>
<excludes>
<exclude>target/**</exclude>
<exclude>.settings/**</exclude>
<exclude>.checkstyle</exclude>
<exclude>.project</exclude>
<exclude>.classpath</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

46
pom.xml
View File

@ -87,6 +87,7 @@
<cs.daemon.version>1.0.10</cs.daemon.version>
<cs.jna.version>4.0.0</cs.jna.version>
<cs.checkstyle.version>2.11</cs.checkstyle.version>
<cs.mycila.license.version>2.5</cs.mycila.license.version>
</properties>
<distributionManagement>
@ -455,6 +456,19 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>cloudstack-checklicence</id>
<phase>none</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
@ -488,6 +502,38 @@
<excludes>**\/deps\/,**\/test\/,**\/target\/,**\/bin\/,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/awsapi\/,**\/XenServerJava\/,**\/apidoc\/</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${cs.mycila.license.version}</version>
<executions>
<execution>
<id>cloudstack-checklicence</id>
<phase>process-classes</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<strictCheck>true</strictCheck>
<aggregate>true</aggregate>
<header>LICENSE.header</header>
<mapping>
<xml>XML_STYLE</xml>
    <java>DOUBLESLASH_STYLE</java>
    <clj>SEMICOLON_STYLE</clj>
</mapping>
<useDefaultExcludes>false</useDefaultExcludes>
<excludes>
<exclude>**/target/**</exclude>
<exclude>.settings/**</exclude>
<exclude>.checkstyle</exclude>
<exclude>.project</exclude>
<exclude>.classpath</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>