From 3c1004014553a6f6f01635cfa02d2544863a8082 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Thu, 30 Sep 2021 14:01:09 +0200 Subject: [PATCH] fix the build for maven 3.8.2 Signed-off-by: Lukas Jungmann --- NOTICE.md | 2 +- pom.xml | 68 ++++++++++++++++++++++----------- src/main/assembly/resources.xml | 45 ++++++++++++++++++++++ 3 files changed, 92 insertions(+), 23 deletions(-) create mode 100644 src/main/assembly/resources.xml diff --git a/NOTICE.md b/NOTICE.md index 8e04341a..e00e968d 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -55,4 +55,4 @@ may have restrictions on the import, possession, and use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is -permitted.ed. \ No newline at end of file +permitted. \ No newline at end of file diff --git a/pom.xml b/pom.xml index d3b1c06b..8d4ff8b1 100644 --- a/pom.xml +++ b/pom.xml @@ -83,8 +83,9 @@ ${project.version} 1.1.0 false - ${maven.multiModuleProjectDirectory} - ${project.root.location}/etc/config + ${project.build.directory}/common-resources + ${project.build.commonResourcesDirectory}/legal + ${project.build.commonResourcesDirectory}/config ${config.dir}/copyright-exclude ${config.dir}/copyright.txt false @@ -127,21 +128,49 @@ - org.commonjava.maven.plugins - directory-maven-plugin - - - find-project-root - validate - - highest-basedir - - - project.root.location - - - - + org.apache.maven.plugins + maven-assembly-plugin + + + common-resources + generate-resources + + single + + false + + + src/main/assembly/resources.xml + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-resource + generate-resources + + unpack + + + + + ${project.groupId} + project + ${project.version} + resources + zip + ${project.build.commonResourcesDirectory} + + + + + + org.codehaus.mojo buildnumber-maven-plugin @@ -222,10 +251,6 @@ ${legal.doc.source} - - NOTICE.md - LICENSE.md - META-INF @@ -488,7 +513,6 @@ ${spotbugs.skip} ${spotbugs.threshold} - true ${spotbugs.exclude} diff --git a/src/main/assembly/resources.xml b/src/main/assembly/resources.xml new file mode 100644 index 00000000..636f469d --- /dev/null +++ b/src/main/assembly/resources.xml @@ -0,0 +1,45 @@ + + + + + resources + + zip + + false + + + ${project.basedir} + legal + + LICENSE.md + NOTICE.md + + + + ${project.basedir}/etc/config + config + + * + + + + \ No newline at end of file