add 3. party licenses to release jar

This commit is contained in:
GeorgH93 2019-06-22 21:34:27 +02:00
parent 4b41901c38
commit ba3ec3753e
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

26
pom.xml
View File

@ -97,9 +97,6 @@
<resource>
<directory>resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>./</directory>
@ -107,6 +104,9 @@
<include>LICENSE</include>
</includes>
</resource>
<resource>
<directory>${project.build.directory}/generated-resources</directory>
</resource>
</resources>
<plugins>
<plugin>
@ -315,6 +315,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.20</version>
<configuration>
<excludedScopes>test,provided,system</excludedScopes>
<generateBundle>true</generateBundle>
<licensesOutputFile>${project.build.directory}/generated-resources/licenses-THIRD-PARTY.xml</licensesOutputFile>
</configuration>
<executions>
<execution>
<id>add-third-party</id>
<phase>generate-resources</phase>
<goals>
<goal>add-third-party</goal>
<goal>download-licenses</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>