Skip to content

Commit c113a2f

Browse files
committed
Enable license-maven-plugin
1 parent 493e90f commit c113a2f

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

pom.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,33 @@
114114
<groupId>org.apache.maven.plugins</groupId>
115115
<artifactId>maven-checkstyle-plugin</artifactId>
116116
</plugin>
117+
<plugin>
118+
<groupId>org.codehaus.mojo</groupId>
119+
<artifactId>license-maven-plugin</artifactId>
120+
<executions>
121+
<execution>
122+
<id>add-third-party</id>
123+
<goals>
124+
<goal>add-third-party</goal>
125+
</goals>
126+
<phase>generate-resources</phase>
127+
<configuration>
128+
<outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
129+
<force>true</force>
130+
<includedLicenses>
131+
<!--
132+
when available, use SPDX license identifiers listed in https://spdx.org/licenses
133+
-->
134+
<includedLicense>Apache-2.0</includedLicense>
135+
<includedLicense>Bouncy Castle Licence</includedLicense>
136+
<includedLicense>GPL-2.0-with-classpath-exception</includedLicense>
137+
<includedLicense>MIT</includedLicense>
138+
<includedLicense>LGPL-2.1</includedLicense>
139+
</includedLicenses>
140+
</configuration>
141+
</execution>
142+
</executions>
143+
</plugin>
117144
</plugins>
118145
<pluginManagement>
119146
<plugins>
@@ -180,6 +207,33 @@
180207
</filters>
181208
</configuration>
182209
</plugin>
210+
<plugin>
211+
<groupId>org.codehaus.mojo</groupId>
212+
<artifactId>license-maven-plugin</artifactId>
213+
<version>2.7.1</version>
214+
<configuration>
215+
<failOnBlacklist>true</failOnBlacklist>
216+
<failOnMissing>true</failOnMissing>
217+
<licenseMerges>
218+
<licenseMerge>
219+
GPL-2.0-with-classpath-exception |
220+
GPLv2+CE |
221+
GNU General Public License, version 2, with the Classpath Exception
222+
</licenseMerge>
223+
<licenseMerge>
224+
MIT |
225+
MIT License
226+
</licenseMerge>
227+
<licenseMerge>
228+
LGPL-2.1 |
229+
GNU Lesser General Public License (LGPL), Version 2.1 |
230+
Lesser General Public License (LGPL) |
231+
GNU Lesser General Public License, version 2.1
232+
</licenseMerge>
233+
</licenseMerges>
234+
<excludedScopes>test,provided</excludedScopes>
235+
</configuration>
236+
</plugin>
183237
</plugins>
184238
</pluginManagement>
185239
</build>

0 commit comments

Comments
 (0)