diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-15 18:09:43 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-15 18:10:14 +0200 |
commit | f4d600e1d0b5da539f907da89878accf187815d9 (patch) | |
tree | 8779801592f65bd472988a161fe927ae61c8f74a /pom.xml | |
parent | 37dc4b62ec6f415483c9dfbe36651ce2e056d501 (diff) | |
download | sonarqube-f4d600e1d0b5da539f907da89878accf187815d9.tar.gz sonarqube-f4d600e1d0b5da539f907da89878accf187815d9.zip |
Check license headers during default build
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 64 |
1 files changed, 31 insertions, 33 deletions
@@ -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> |