From f698352c3379b27e338c054e078e70eac9ff4de5 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 29 Apr 2022 12:41:46 +0200 Subject: other pom cleanups: - auto-extract bundled jre - auto-build zip archive - only build jar installer for linux - only include icons where necessary --- pdf-over-gui/pom.xml | 207 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 158 insertions(+), 49 deletions(-) (limited to 'pdf-over-gui/pom.xml') diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml index 276a7d27..6d08d3f4 100644 --- a/pdf-over-gui/pom.xml +++ b/pdf-over-gui/pom.xml @@ -212,13 +212,47 @@ + + org.codehaus.mojo + truezip-maven-plugin + 1.2 + + + extract-jre + package + + copy + + + + ${project.basedir}/../jre-bundles/${bundled-jre.archiveName}/${bundled-jre.nameInArchive} + ${staging.dir}/jre + + + + + build-archive + install + + copy + + + + ${staging.dir} + ${project.build.output-dir}/pdf-over_${target.name}.zip/ + + + + + org.codehaus.mojo exec-maven-plugin 1.2.1 - install + add-manifest-to-izpack + none exec @@ -288,49 +322,36 @@ UTF-8 ${staging.dir} - - src/main/resources - - icons/* - - src/main/resources true - scripts/* ReadMe.txt - src/main/resources/izpack - - *.xml - - - - src/main/resources/izpack + src/main/resources/scripts true - *.xml + *${target.name}* - copy-jre - package + copy-icons + validate copy-resources - ${staging.dir}/jre + ${staging.dir} - ${project.basedir}/../jre-bundles + src/main/resources - ${bundled-jre.archiveName} + icons/* @@ -363,7 +384,7 @@ . src/main/resources/icons/icon.ico - jre/${bundled-jre.nameInArchive} + jre ${version.exe} @@ -450,39 +471,13 @@ - - org.codehaus.izpack - izpack-maven-plugin - 1.0-alpha-5 - - - org.codehaus.izpack - izpack-standalone-compiler - ${izpack-standalone.version} - - - - ${staging.dir} - ${staging.dir}/setup.jar - false - - - - standard-installer - package - - izpack - - - - src/main/resources - izpack/* + izpack-linux/* scripts/* ReadMe.txt keystore.jks @@ -507,6 +502,110 @@ org.eclipse.swt.gtk.linux.x86_64 linux + + + + maven-resources-plugin + 2.4.2 + + + copy-izpack-resources + validate + + copy-resources + + + UTF-8 + ${staging.dir} + + + src/main/resources/izpack-linux + + *.xml + + + + src/main/resources/izpack-linux + true + + *.xml + + + + + + + copy-result + install + + copy-resources + + + ${project.build.output-dir} + + + ${staging.dir} + + setup.jar + + + + + + + + + truezip-maven-plugin + 1.2 + + + extract-jre + none + + + build-archive + none + + + + + org.codehaus.izpack + izpack-maven-plugin + 1.0-alpha-5 + + + org.codehaus.izpack + izpack-standalone-compiler + ${izpack-standalone.version} + + + + ${staging.dir} + ${staging.dir}/setup.jar + false + + + + standard-installer + package + + izpack + + + + + + exec-maven-plugin + 1.2.1 + + + add-manifest-to-izpack + verify + + + + + windows @@ -546,6 +645,16 @@ + + maven-resources-plugin + 2.4.2 + + + copy-icons + none + + + -- cgit v1.2.3