From e89fc5df46d5fb1fdff213356478ec114fa85156 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Fri, 21 Sep 2018 09:49:32 +0100 Subject: [PATCH] Windows packaging with Maven --- packaging/linux.xml | 4 ++ packaging/pom.xml | 41 ++++++++++++++++++++ packaging/windows.xml | 88 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 packaging/windows.xml diff --git a/packaging/linux.xml b/packaging/linux.xml index 9d78bcf38..2556b5093 100644 --- a/packaging/linux.xml +++ b/packaging/linux.xml @@ -41,6 +41,10 @@ **/tests/** **/src/** **/*.java + **/lib-src/** + **/pom.xml + **/.settings/** + **/.project diff --git a/packaging/pom.xml b/packaging/pom.xml index 43e78f54f..d4d6021db 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -17,10 +17,50 @@ ${basedir}/.. + 0.0.0.0 + + com.akathist.maven.plugins.launch4j + launch4j-maven-plugin + + + l4j-clui + package + launch4j + + console + target/openrefine.exe + ${rootdir}/server/target/openrefine-${project.version}-server.jar + + com.google.refine.Refine + + + 1.8.0 + preferJre + 256 + 1024 + + -Djava.library.path=server/target/lib/native/windows + + + + ${fullversion} + ${project.version} + openrefine + Copyright (c) 2018 OpenRefine contributors, 2010 Google, Inc. + ${fullversion} + ${project.version} + OpenRefine + openrefine + openrefine.exe + + + + + org.apache.maven.plugins maven-assembly-plugin @@ -35,6 +75,7 @@ linux.xml + windows.xml diff --git a/packaging/windows.xml b/packaging/windows.xml new file mode 100644 index 000000000..4223d67f4 --- /dev/null +++ b/packaging/windows.xml @@ -0,0 +1,88 @@ + + win-${project.version} + + zip + + ${project.build.finalName}-${project.version} + + + ${rootdir}/server/target/lib + server/target/lib + + *.jar + + + + ${rootdir}/server/lib/native + server/target/lib/native + + **/*.dll + + + + ${rootdir}/main/webapp + webapp + + + **/*.java + **/butterfly.properties + + + + ${rootdir}/licenses + licenses + + + ${rootdir}/licenses + licenses + + + ${rootdir}/extensions + webapp/extensions + + ** + + + **/target/** + **/tests/** + **/src/** + **/*.java + **/lib-src/** + **/pom.xml + **/.settings/** + **/.project + + + + + + + target/openrefine.exe + + + ${rootdir}/conf/openrefine.l4j.ini + + + ${rootdir}/refine.bat + + + ${rootdir}/refine.ini + + + ${rootdir}/README.md + + + ${rootdir}/LICENSE.txt + + + ${rootdir}/packaging/butterfly.properties + webapp/WEB-INF + + + ${rootdir}/server/target/openrefine-${project.version}-server.jar + server/target/lib + + + +