]> source.dussan.org Git - sonarqube.git/commitdiff
Add third-party-licenses.sh
authorSimon Brandhof <simon.brandhof@gmail.com>
Sat, 22 Mar 2014 13:24:16 +0000 (14:24 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sat, 22 Mar 2014 13:24:16 +0000 (14:24 +0100)
pom.xml
third-party-licenses.sh [new file with mode: 0755]

diff --git a/pom.xml b/pom.xml
index 931dabeac01d8d1f5f491c12150e91666428337a..f704f5b1de150be2ab4c21b938f558d733a89d43 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         </configuration>
       </plugin>
       <plugin>
-        <!-- this plugin is used to list the licenses of all the dependencies :
-        mvn org.codehaus.mojo:license-maven-plugin:aggregate-add-third-party
+        <!-- 
+        This plugin is used to list the licenses of all the dependencies. The module 
+        sonar-testing-harness must be excluded. See third-party-licenses.sh
         -->
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>license-maven-plugin</artifactId>
-        <version>1.0-beta-3</version>
+        <version>1.6</version>
         <configuration>
           <groupByLicense>true</groupByLicense>
-          <licenseMerges>
-            <licenseMerge>The Apache Software License, Version 2.0|Apache License 2.0|Apache 2|Apache License Version
-              2|Apache License Version 2.0|Apache Public License 2.0|Apache Software License - Version 2.0|Apache
-              Software Licenses
-            </licenseMerge>
-            <licenseMerge>GNU Lesser General Public License, Version 2.1|GNU Lesser General Public License Version
-              2.1|GNU Lesser General Public License (LGPL), Version 2.1
-            </licenseMerge>
-            <licenseMerge>BSD|BSD License|The BSD License</licenseMerge>
-            <licenseMerge>Common Public License, Version 1.0|Common Public License - v 1.0|Common Public License Version
-              1.0
-            </licenseMerge>
-            <licenseMerge>Eclipse Public License, Version 1.0|Eclipse Public License - Version 1.0</licenseMerge>
-            <licenseMerge>Common Development and Distribution License, Version 1.0|COMMON DEVELOPMENT AND DISTRIBUTION
-              LICENSE (CDDL) Version 1.0|Common Development and Distribution License (CDDL) v1.0
-            </licenseMerge>
-            <licenseMerge>MIT License|The MIT License</licenseMerge>
-          </licenseMerges>
+          <includedScopes>compile</includedScopes>
         </configuration>
       </plugin>
     </plugins>
diff --git a/third-party-licenses.sh b/third-party-licenses.sh
new file mode 100755 (executable)
index 0000000..de9ee91
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn org.codehaus.mojo:license-maven-plugin:aggregate-add-third-party -pl sonar-application,sonar-maven-plugin -am