Skip to content
Browse files

Tilføj maven-license-plugin

  • Loading branch information...
1 parent 3b6b7de commit dc7e1acd52403fa6b3b8f5091bda1e05ea088f1c @jrftrifork jrftrifork committed Sep 20, 2012
Showing with 63 additions and 0 deletions.
  1. +3 −0 Changelog.md
  2. +36 −0 pom.xml
  3. +24 −0 standardheader.txt
View
3 Changelog.md
@@ -0,0 +1,3 @@
+## sdm-parent 4.3
+* Tilføjet konfiguration af maven-license-plugin, så importermoduler bare skal tilføje en
+ standardheader.txt, så får de tjekket licens-indhold af alle Java-filer
View
36 pom.xml
@@ -183,6 +183,42 @@
<profiles>
<profile>
+ <id>check-license</id>
+ <activation>
+ <file>
+ <!-- activate profile only in modules which seems to be actually contain source files -->
+ <exists>${basedir}/src/main/java</exists>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.mycila.maven-license-plugin</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>1.9.0</version>
+ <configuration>
+ <strictCheck>true</strictCheck>
+ <header>${basedir}/standardheader.txt</header>
+ <failIfMissing>true</failIfMissing>
+ <aggregate>true</aggregate>
+ <includes>
+ <include>**/src/**/*.java</include>
+ </includes>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
<id>deploy-integrationtest-war</id>
<activation>
<file>
View
24 standardheader.txt
@@ -0,0 +1,24 @@
+/**
+ * The contents of this file are subject to the Mozilla Public
+ * License Version 1.1 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS
+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * rights and limitations under the License.
+ *
+ * Contributor(s): Contributors are attributed in the source code
+ * where applicable.
+ *
+ * The Original Code is "Stamdata".
+ *
+ * The Initial Developer of the Original Code is Trifork Public A/S.
+ *
+ * Portions created for the Original Code are Copyright 2011,
+ * Lægemiddelstyrelsen. All Rights Reserved.
+ *
+ * Portions created for the FMKi Project are Copyright 2011,
+ * National Board of e-Health (NSI). All Rights Reserved.
+ */

0 comments on commit dc7e1ac

Please sign in to comment.
Something went wrong with that request. Please try again.