add and configure license-maven-plugin
and populate src/license/THIRD-PARTY.properties
resolves STREAMS-501
diff --git a/pom.xml b/pom.xml
index b3b0be0..bdbe2e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -340,6 +340,7 @@
<failsafe.plugin.version>2.19.1</failsafe.plugin.version>
<jar.plugin.version>2.6</jar.plugin.version>
<javadoc.plugin.version>2.10.2</javadoc.plugin.version>
+ <license.plugin.version>1.15</license.plugin.version>
<pax.plugin.version>1.5</pax.plugin.version>
<remote-resources.plugin.version>1.4</remote-resources.plugin.version>
<reports.plugin.version>2.9</reports.plugin.version>
@@ -476,6 +477,10 @@
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -727,6 +732,32 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${license.plugin.version}</version>
+ <configuration>
+ <excludedGroups>org.apache.streams,org.apache.streams.plugins</excludedGroups>
+ <excludedLicenses></excludedLicenses>
+ <failOnBlacklist>true</failOnBlacklist>
+ <missingFile>${project.basedir}/src/license/THIRD-PARTY.properties</missingFile>
+ <useMissingFile>true</useMissingFile>
+ </configuration>
+ <executions>
+ <execution>
+ <id>aggregate-add-third-party</id>
+ <goals>
+ <goal>aggregate-add-third-party</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>aggregate-download-licenses</id>
+ <goals>
+ <goal>aggregate-download-licenses</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
@@ -834,6 +865,11 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${license.plugin.version}</version>
+ </plugin>
+ <plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>${download.plugin.version}</version>
@@ -1308,6 +1344,24 @@
</reportSets>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${license.plugin.version}</version>
+ <configuration>
+ <excludedGroups>org.apache.streams,org.apache.streams.plugins</excludedGroups>
+ <missingFile>${project.basedir}/src/license/THIRD-PARTY.properties</missingFile>
+ <useMissingFile>true</useMissingFile>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <inherited>false</inherited>
+ <reports>
+ <report>aggregate-third-party-report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${site.plugin.version}</version>
<configuration>
@@ -1375,6 +1429,15 @@
<skip>true</skip>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>${license.plugin.version}</version>
+ <configuration>
+ <skipAggregateAddThirdParty>true</skipAggregateAddThirdParty>
+ <skipAggregateDownloadLicenses>true</skipAggregateDownloadLicenses>
+ </configuration>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/src/license/THIRD-PARTY.properties b/src/license/THIRD-PARTY.properties
new file mode 100644
index 0000000..beb0b5e
--- /dev/null
+++ b/src/license/THIRD-PARTY.properties
@@ -0,0 +1,21 @@
+antlr--antlr--2.7.2=BSD License
+asm--asm--3.1=Copyright (c) 2000-2011 INRIA, France Telecom. All rights reserved.
+classworlds--classworlds--1.1-alpha-2=Copyright 2002 (C) The Codehaus. All Rights Reserved.
+com.google.code.javaparser--javaparser--1.0.11=Apache License, Version 2.0
+commons-beanutils--commons-beanutils--1.7.0=Apache License, Version 2.0
+commons-codec--commons-codec--1.2=Apache License, Version 2.0
+dom4j--dom4j--1.1=Copyright 2001-2016 (C) MetaStuff, Ltd. and DOM4J contributors. All Rights Reserved.
+javax.servlet--servlet-api--2.5=Common Development and Distribution License
+javax.servlet.jsp--jsp-api--2.1=Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
+javax.xml.bind--jsr173_api--1.0=BEA Systems, Inc. ("BEA") Binary Code License Agreement
+jdom--jdom--1.0=Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin. All rights reserved.
+org.antlr--antlr-runtime--3.3=BSD Licence
+org.apache.ant--ant--1.7.0=Apache License, Version 2.0
+org.apache.ant--ant-launcher--1.7.0=Apache License, Version 2.0
+org.apache.zookeeper--zookeeper--3.4.5=Apache License, Version 2.0
+org.apache.zookeeper--zookeeper--3.4.6=Apache License, Version 2.0
+org.codehaus.jettison--jettison--1.1=Apache License, Version 2.0
+org.codehaus.plexus--plexus-container-default--1.0-alpha-9-stable-1=Apache License, Version 2.0
+org.codehaus.plexus--plexus-i18n--1.0-beta-7=Apache License, Version 2.0
+org.sonatype.plexus--plexus-build-api--0.0.4=Apache License, Version 2.0
+oro--oro--2.0.8=MIT License