Skip to content

Commit cfd6d3a

Browse files
committed
Fixes #2054
1 parent 38a85ff commit cfd6d3a

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

COPYRIGHT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019-2022 the original author or authors.
1+
Copyright 2019-2023 the original author or authors.
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

pom.xml

+25-11
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,6 @@
233233
</dependency>
234234
</dependencies>
235235
<build>
236-
<resources>
237-
<resource>
238-
<directory>../</directory>
239-
<targetPath>META-INF</targetPath>
240-
<includes>
241-
<include>LICENSE</include>
242-
<include>COPYRIGHT</include>
243-
</includes>
244-
</resource>
245-
</resources>
246-
247236
<pluginManagement>
248237
<plugins>
249238
<plugin>
@@ -254,6 +243,31 @@
254243
</plugins>
255244
</pluginManagement>
256245
<plugins>
246+
<plugin>
247+
<groupId>org.apache.maven.plugins</groupId>
248+
<artifactId>maven-resources-plugin</artifactId>
249+
<executions>
250+
<execution>
251+
<id>copy-resources</id>
252+
<phase>validate</phase>
253+
<goals>
254+
<goal>copy-resources</goal>
255+
</goals>
256+
<configuration>
257+
<outputDirectory>${basedir}/target/classes/META-INF</outputDirectory>
258+
<resources>
259+
<resource>
260+
<directory>${basedir}/..</directory>
261+
<includes>
262+
<include>LICENSE</include>
263+
<include>COPYRIGHT</include>
264+
</includes>
265+
</resource>
266+
</resources>
267+
</configuration>
268+
</execution>
269+
</executions>
270+
</plugin>
257271
<plugin>
258272
<groupId>org.owasp</groupId>
259273
<artifactId>dependency-check-maven</artifactId>

0 commit comments

Comments
 (0)