aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-07-15 18:09:43 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-07-15 18:10:14 +0200
commitf4d600e1d0b5da539f907da89878accf187815d9 (patch)
tree8779801592f65bd472988a161fe927ae61c8f74a /pom.xml
parent37dc4b62ec6f415483c9dfbe36651ce2e056d501 (diff)
downloadsonarqube-f4d600e1d0b5da539f907da89878accf187815d9.tar.gz
sonarqube-f4d600e1d0b5da539f907da89878accf187815d9.zip
Check license headers during default build
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml64
1 files changed, 31 insertions, 33 deletions
diff --git a/pom.xml b/pom.xml
index 5184872ae1d..9e0ef8dbe45 100644
--- a/pom.xml
+++ b/pom.xml
@@ -412,6 +412,37 @@
<javadocDir>${project.reporting.outputDirectory}/${project.version}/apidocs</javadocDir>
</configuration>
</plugin>
+ <!-- check copyright/license headers -->
+ <plugin>
+ <inherited>false</inherited>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <configuration>
+ <header>${project.basedir}/copyright.txt</header>
+ <failIfMissing>true</failIfMissing>
+ <strictCheck>true</strictCheck>
+ <aggregate>true</aggregate>
+ <includes>
+ <include>**/sonar-*/src/main/java/**</include>
+ <include>**/sonar-*/src/test/java/**</include>
+ </includes>
+ <excludes>
+ <exclude>tests/**</exclude>
+ </excludes>
+ <mapping>
+ <java>SLASHSTAR_STYLE</java>
+ </mapping>
+ </configuration>
+ <executions>
+ <execution>
+ <id>enforce-license-headers</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
@@ -1046,39 +1077,6 @@
</execution>
</executions>
</plugin>
-
-
- <!-- check copyright/license headers -->
- <plugin>
- <inherited>false</inherited>
- <groupId>com.mycila.maven-license-plugin</groupId>
- <artifactId>maven-license-plugin</artifactId>
- <configuration>
- <header>${project.basedir}/copyright.txt</header>
- <failIfMissing>true</failIfMissing>
- <strictCheck>true</strictCheck>
- <aggregate>true</aggregate>
- <includes>
- <include>**/sonar-*/src/main/java/**</include>
- <include>**/sonar-*/src/test/java/**</include>
- </includes>
- <excludes>
- <exclude>tests/**</exclude>
- </excludes>
- <mapping>
- <java>SLASHSTAR_STYLE</java>
- </mapping>
- </configuration>
- <executions>
- <execution>
- <id>enforce-license-headers</id>
- <phase>validate</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>