Skip to content

Commit

Permalink
Merge pull request #185 from cliveseldon/licences
Browse files Browse the repository at this point in the history
Licences generation in poms
  • Loading branch information
gsunner authored Jul 9, 2018
2 parents 91c1b7f + fb38722 commit a7bc6a8
Show file tree
Hide file tree
Showing 3 changed files with 258 additions and 1 deletion.
86 changes: 86 additions & 0 deletions api-frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,92 @@
</extensions>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.13</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
<configuration>
<outputDirectory>${root.basedir}</outputDirectory>
<thirdPartyFilename>LICENSES_THIRD_PARTY</thirdPartyFilename>
<!-- Use the template which groups all dependencies by their License
type (easier to read!). -->
<!-- SEE: https://fisheye.codehaus.org/browse/mojo/trunk/mojo/license-maven-plugin/src/main/resources/org/codehaus/mojo/license -->
<!-- <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate> -->
<fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate>
<!-- License names that should all be merged into the *first* listed
name -->
<licenseMerges>
<licenseMerge>Apache Software License, Version 2.0|The Apache
Software License, Version 2.0|Apache License Version 2.0|Apache
License, Version 2.0|Apache Public License 2.0|Apache License
2.0|Apache Software License - Version 2.0|Apache 2.0
License|Apache 2.0 license|Apache License V2.0|Apache 2|Apache
License|Apache|ASF 2.0</licenseMerge>
<!-- Ant-contrib is an Apache License -->
<licenseMerge>Apache Software License, Version
2.0|http://ant-contrib.sourceforge.net/tasks/LICENSE.txt</licenseMerge>
<licenseMerge>BSD License|The BSD License|BSD licence|BSD
license|BSD|BSD-style license|New BSD License|New BSD
license|Revised BSD License</licenseMerge>
<!-- DuraSpace uses a BSD License for DSpace -->
<licenseMerge>BSD License|DuraSpace BSD License|DuraSpace
Sourcecode License</licenseMerge>
<!-- Coverity uses modified BSD: https://github.com/coverity/coverity-security-library -->
<licenseMerge>BSD License|BSD style modified by Coverity</licenseMerge>
<licenseMerge>Common Development and Distribution License
(CDDL)|Common Development and Distribution License (CDDL)
v1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version
1.0|CDDL, v1.0|CDDL 1.0 license|CDDL 1.0|CDDL 1.1</licenseMerge>
<!-- Jersey / Java Servlet API claims this license, but is actually
CDDL 1.0: http://servlet-spec.java.net -->
<licenseMerge>Common Development and Distribution License
(CDDL)|CDDL + GPLv2 with classpath exception</licenseMerge>
<!-- Jersey claims this license, but it is dual licensed with CDDL
1.0 being one: https://jersey.java.net/license.html -->
<licenseMerge>Common Development and Distribution License
(CDDL)|GPL2 w/ CPE</licenseMerge>
<licenseMerge>Eclipse Public License|Eclipse Public License -
Version 1.0|Eclipse Public License - v 1.0|EPL 1.0 license</licenseMerge>
<!-- JUnit claims this license but is actually Eclipse Public License:
http://junit.org/license.html -->
<licenseMerge>Eclipse Public License|Common Public License
Version
1.0</licenseMerge>
<licenseMerge>GNU Lesser General Public License (LGPL)|GNU
Lesser
General Public License (LGPL), Version 2.1|GNU LESSER GENERAL
PUBLIC LICENSE, Version 2.1|GNU Lesser General Public License|GNU
Lesser Public License|GNU Lesser General Public License,
Version
2.1|Lesser General Public License (LGPL) v 2.1|LGPL 2.1|LGPL 2.1
license|LGPL 3.0 license|LGPL, v2.1 or later|LGPL</licenseMerge>
<licenseMerge>MIT License|The MIT License|MIT LICENSE</licenseMerge>
<!-- BouncyCastle uses a modified MIT License: http://www.bouncycastle.org/license.html -->
<licenseMerge>MIT License|Bouncy Castle Licence</licenseMerge>
<licenseMerge>Mozilla Public License|Mozilla Public License
version 1.1|Mozilla Public License 1.1 (MPL 1.1)|MPL 1.1</licenseMerge>
<!-- H2 Database claims this license, but for our purposes it's MPL:
http://www.h2database.com -->
<licenseMerge>Mozilla Public License|MPL 2.0, and EPL 1.0</licenseMerge>
<!-- "concurrent.concurrent" claims this license, but is actually
Public Domain: http://mvnrepository.com/artifact/concurrent/concurrent/ -->
<licenseMerge>Public Domain|Public domain, Sun Microsoystems</licenseMerge>
<!-- WTFPL is essentially Public Domain: http://www.wtfpl.net/ ;) -->
<licenseMerge>Public Domain|WTFPL</licenseMerge>
</licenseMerges>
<!-- For Licenses which are "Unknown" by Maven, load them from a properties
file -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
87 changes: 86 additions & 1 deletion cluster-manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,92 @@
</extensions>

<plugins>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.13</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
<configuration>
<outputDirectory>${root.basedir}</outputDirectory>
<thirdPartyFilename>LICENSES_THIRD_PARTY</thirdPartyFilename>
<!-- Use the template which groups all dependencies by their License
type (easier to read!). -->
<!-- SEE: https://fisheye.codehaus.org/browse/mojo/trunk/mojo/license-maven-plugin/src/main/resources/org/codehaus/mojo/license -->
<!-- <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate> -->
<fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate>
<!-- License names that should all be merged into the *first* listed
name -->
<licenseMerges>
<licenseMerge>Apache Software License, Version 2.0|The Apache
Software License, Version 2.0|Apache License Version 2.0|Apache
License, Version 2.0|Apache Public License 2.0|Apache License
2.0|Apache Software License - Version 2.0|Apache 2.0
License|Apache 2.0 license|Apache License V2.0|Apache 2|Apache
License|Apache|ASF 2.0</licenseMerge>
<!-- Ant-contrib is an Apache License -->
<licenseMerge>Apache Software License, Version
2.0|http://ant-contrib.sourceforge.net/tasks/LICENSE.txt</licenseMerge>
<licenseMerge>BSD License|The BSD License|BSD licence|BSD
license|BSD|BSD-style license|New BSD License|New BSD
license|Revised BSD License</licenseMerge>
<!-- DuraSpace uses a BSD License for DSpace -->
<licenseMerge>BSD License|DuraSpace BSD License|DuraSpace
Sourcecode License</licenseMerge>
<!-- Coverity uses modified BSD: https://github.com/coverity/coverity-security-library -->
<licenseMerge>BSD License|BSD style modified by Coverity</licenseMerge>
<licenseMerge>Common Development and Distribution License
(CDDL)|Common Development and Distribution License (CDDL)
v1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version
1.0|CDDL, v1.0|CDDL 1.0 license|CDDL 1.0|CDDL 1.1</licenseMerge>
<!-- Jersey / Java Servlet API claims this license, but is actually
CDDL 1.0: http://servlet-spec.java.net -->
<licenseMerge>Common Development and Distribution License
(CDDL)|CDDL + GPLv2 with classpath exception</licenseMerge>
<!-- Jersey claims this license, but it is dual licensed with CDDL
1.0 being one: https://jersey.java.net/license.html -->
<licenseMerge>Common Development and Distribution License
(CDDL)|GPL2 w/ CPE</licenseMerge>
<licenseMerge>Eclipse Public License|Eclipse Public License -
Version 1.0|Eclipse Public License - v 1.0|EPL 1.0 license</licenseMerge>
<!-- JUnit claims this license but is actually Eclipse Public License:
http://junit.org/license.html -->
<licenseMerge>Eclipse Public License|Common Public License
Version
1.0</licenseMerge>
<licenseMerge>GNU Lesser General Public License (LGPL)|GNU
Lesser
General Public License (LGPL), Version 2.1|GNU LESSER GENERAL
PUBLIC LICENSE, Version 2.1|GNU Lesser General Public License|GNU
Lesser Public License|GNU Lesser General Public License,
Version
2.1|Lesser General Public License (LGPL) v 2.1|LGPL 2.1|LGPL 2.1
license|LGPL 3.0 license|LGPL, v2.1 or later|LGPL</licenseMerge>
<licenseMerge>MIT License|The MIT License|MIT LICENSE</licenseMerge>
<!-- BouncyCastle uses a modified MIT License: http://www.bouncycastle.org/license.html -->
<licenseMerge>MIT License|Bouncy Castle Licence</licenseMerge>
<licenseMerge>Mozilla Public License|Mozilla Public License
version 1.1|Mozilla Public License 1.1 (MPL 1.1)|MPL 1.1</licenseMerge>
<!-- H2 Database claims this license, but for our purposes it's MPL:
http://www.h2database.com -->
<licenseMerge>Mozilla Public License|MPL 2.0, and EPL 1.0</licenseMerge>
<!-- "concurrent.concurrent" claims this license, but is actually
Public Domain: http://mvnrepository.com/artifact/concurrent/concurrent/ -->
<licenseMerge>Public Domain|Public domain, Sun Microsoystems</licenseMerge>
<!-- WTFPL is essentially Public Domain: http://www.wtfpl.net/ ;) -->
<licenseMerge>Public Domain|WTFPL</licenseMerge>
</licenseMerges>
<!-- For Licenses which are "Unknown" by Maven, load them from a properties
file -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
Expand Down
86 changes: 86 additions & 0 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,92 @@
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.13</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
<configuration>
<outputDirectory>${root.basedir}</outputDirectory>
<thirdPartyFilename>LICENSES_THIRD_PARTY</thirdPartyFilename>
<!-- Use the template which groups all dependencies by their License
type (easier to read!). -->
<!-- SEE: https://fisheye.codehaus.org/browse/mojo/trunk/mojo/license-maven-plugin/src/main/resources/org/codehaus/mojo/license -->
<!-- <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate> -->
<fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate>
<!-- License names that should all be merged into the *first* listed
name -->
<licenseMerges>
<licenseMerge>Apache Software License, Version 2.0|The Apache
Software License, Version 2.0|Apache License Version 2.0|Apache
License, Version 2.0|Apache Public License 2.0|Apache License
2.0|Apache Software License - Version 2.0|Apache 2.0
License|Apache 2.0 license|Apache License V2.0|Apache 2|Apache
License|Apache|ASF 2.0</licenseMerge>
<!-- Ant-contrib is an Apache License -->
<licenseMerge>Apache Software License, Version
2.0|http://ant-contrib.sourceforge.net/tasks/LICENSE.txt</licenseMerge>
<licenseMerge>BSD License|The BSD License|BSD licence|BSD
license|BSD|BSD-style license|New BSD License|New BSD
license|Revised BSD License</licenseMerge>
<!-- DuraSpace uses a BSD License for DSpace -->
<licenseMerge>BSD License|DuraSpace BSD License|DuraSpace
Sourcecode License</licenseMerge>
<!-- Coverity uses modified BSD: https://github.com/coverity/coverity-security-library -->
<licenseMerge>BSD License|BSD style modified by Coverity</licenseMerge>
<licenseMerge>Common Development and Distribution License
(CDDL)|Common Development and Distribution License (CDDL)
v1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version
1.0|CDDL, v1.0|CDDL 1.0 license|CDDL 1.0|CDDL 1.1</licenseMerge>
<!-- Jersey / Java Servlet API claims this license, but is actually
CDDL 1.0: http://servlet-spec.java.net -->
<licenseMerge>Common Development and Distribution License
(CDDL)|CDDL + GPLv2 with classpath exception</licenseMerge>
<!-- Jersey claims this license, but it is dual licensed with CDDL
1.0 being one: https://jersey.java.net/license.html -->
<licenseMerge>Common Development and Distribution License
(CDDL)|GPL2 w/ CPE</licenseMerge>
<licenseMerge>Eclipse Public License|Eclipse Public License -
Version 1.0|Eclipse Public License - v 1.0|EPL 1.0 license</licenseMerge>
<!-- JUnit claims this license but is actually Eclipse Public License:
http://junit.org/license.html -->
<licenseMerge>Eclipse Public License|Common Public License
Version
1.0</licenseMerge>
<licenseMerge>GNU Lesser General Public License (LGPL)|GNU
Lesser
General Public License (LGPL), Version 2.1|GNU LESSER GENERAL
PUBLIC LICENSE, Version 2.1|GNU Lesser General Public License|GNU
Lesser Public License|GNU Lesser General Public License,
Version
2.1|Lesser General Public License (LGPL) v 2.1|LGPL 2.1|LGPL 2.1
license|LGPL 3.0 license|LGPL, v2.1 or later|LGPL</licenseMerge>
<licenseMerge>MIT License|The MIT License|MIT LICENSE</licenseMerge>
<!-- BouncyCastle uses a modified MIT License: http://www.bouncycastle.org/license.html -->
<licenseMerge>MIT License|Bouncy Castle Licence</licenseMerge>
<licenseMerge>Mozilla Public License|Mozilla Public License
version 1.1|Mozilla Public License 1.1 (MPL 1.1)|MPL 1.1</licenseMerge>
<!-- H2 Database claims this license, but for our purposes it's MPL:
http://www.h2database.com -->
<licenseMerge>Mozilla Public License|MPL 2.0, and EPL 1.0</licenseMerge>
<!-- "concurrent.concurrent" claims this license, but is actually
Public Domain: http://mvnrepository.com/artifact/concurrent/concurrent/ -->
<licenseMerge>Public Domain|Public domain, Sun Microsoystems</licenseMerge>
<!-- WTFPL is essentially Public Domain: http://www.wtfpl.net/ ;) -->
<licenseMerge>Public Domain|WTFPL</licenseMerge>
</licenseMerges>
<!-- For Licenses which are "Unknown" by Maven, load them from a properties
file -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
Expand Down

0 comments on commit a7bc6a8

Please sign in to comment.