Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2012-08-16 16:26:38 -0400
committerJesse McConnell2012-08-16 16:26:38 -0400
commit8dc7a7b1d70af2fee771f206d2999fa8fe04d68d (patch)
treef0067c570ad2ffa22900580b9da9816c3800aecc
parent6dbef17e4404389edadce59074ab02d15b97b65a (diff)
downloadorg.eclipse.jetty.project-8dc7a7b1d70af2fee771f206d2999fa8fe04d68d.tar.gz
org.eclipse.jetty.project-8dc7a7b1d70af2fee771f206d2999fa8fe04d68d.tar.xz
org.eclipse.jetty.project-8dc7a7b1d70af2fee771f206d2999fa8fe04d68d.zip
add license-check profile and header template file
-rw-r--r--header-template.txt15
-rw-r--r--pom.xml42
2 files changed, 57 insertions, 0 deletions
diff --git a/header-template.txt b/header-template.txt
new file mode 100644
index 0000000000..3163f16b17
--- /dev/null
+++ b/header-template.txt
@@ -0,0 +1,15 @@
+ ========================================================================
+ Copyright (c) ${copyright-range} Mort Bay Consulting Pty. Ltd.
+ ------------------------------------------------------------------------
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ and Apache License v2.0 which accompanies this distribution.
+
+ The Eclipse Public License is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ The Apache License v2.0 is available at
+ http://www.opensource.org/licenses/apache2.0.php
+
+ You may elect to redistribute this code under either of these licenses.
+======================================================================== \ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 5374500c31..6972aeeb53 100644
--- a/pom.xml
+++ b/pom.xml
@@ -727,5 +727,47 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>license-check</id>
+ <build>
+ <plugins>
+ <plugin>
+ <inherited>false</inherited>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>1.10.b1</version>
+ <configuration>
+ <header>header-template.txt</header>
+ <failIfMissing>true</failIfMissing>
+ <aggregate>true</aggregate>
+ <strictCheck>true</strictCheck>
+ <properties>
+ <copyright-range>${project.inceptionYear}-2012</copyright-range>
+ </properties>
+ <mapping>
+ <java>DOUBLESLASH_STYLE</java>
+ </mapping>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ <excludes>
+ <exclude>jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java</exclude>
+ <exclude>jetty-policy/src/main/java/org/eclipse/jetty/policy/loader/DefaultPolicyLoader.java</exclude>
+ <exclude>jetty-policy/src/main/java/org/eclipse/jetty/policy/loader/PolicyFileScanner.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>check-headers</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>

Back to the top