You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by bc...@apache.org on 2023/05/06 11:53:03 UTC

[incubator-baremaps] 01/01: Add third-party licenses to the bin distribution

This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch 492-third-party-licenses
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit 4f066b7afe3db796f08177465d6ba15e103436e8
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Sat May 6 13:52:32 2023 +0200

    Add third-party licenses to the bin distribution
---
 baremaps-cli/pom.xml              | 17 +++++++++++++++++
 baremaps-cli/src/assembly/bin.xml |  9 +++++++++
 2 files changed, 26 insertions(+)

diff --git a/baremaps-cli/pom.xml b/baremaps-cli/pom.xml
index 5b9f22b3..e7b80d59 100644
--- a/baremaps-cli/pom.xml
+++ b/baremaps-cli/pom.xml
@@ -139,6 +139,23 @@
           </compilerArgs>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>license-maven-plugin</artifactId>
+        <version>2.0.1</version>
+        <configuration>
+          <thirdPartyFilename>THIRD-PARTY</thirdPartyFilename>
+          <excludeScopes>test</excludeScopes>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>add-third-party</goal>
+            </goals>
+            <phase>prepare-package</phase>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>
diff --git a/baremaps-cli/src/assembly/bin.xml b/baremaps-cli/src/assembly/bin.xml
index 3530b15c..dc4b8e82 100644
--- a/baremaps-cli/src/assembly/bin.xml
+++ b/baremaps-cli/src/assembly/bin.xml
@@ -31,6 +31,15 @@
       <lineEnding>unix</lineEnding>
       <fileMode>0755</fileMode>
     </fileSet>
+    <fileSet>
+      <directory>target/generated-sources/license/</directory>
+      <outputDirectory>.</outputDirectory>
+      <includes>
+        <include>THIRD-PARTY</include>
+      </includes>
+      <lineEnding>unix</lineEnding>
+      <fileMode>0755</fileMode>
+    </fileSet>
     <fileSet>
       <directory>src/bin</directory>
       <outputDirectory>bin</outputDirectory>