diff --git a/packaging/pom.xml b/packaging/pom.xml index ae8f24b5c..644710e1a 100644 --- a/packaging/pom.xml +++ b/packaging/pom.xml @@ -21,6 +21,80 @@ /opt/jre1.8.0_181.jre + + + default + + true + + + + + sh.tak.appbundler + appbundle-maven-plugin + + + org.apache.maven.plugins + maven-assembly-plugin + + + package-distributions + + + linux.xml + windows.xml + + + + + + + + + + linux + + + + org.apache.maven.plugins + maven-assembly-plugin + + + package-distributions + + + linux.xml + + + + + + + + + + windows + + + + org.apache.maven.plugins + maven-assembly-plugin + + + package-distributions + + + windows.xml + + + + + + + + + + @@ -255,93 +329,6 @@ - - sh.tak.appbundler - appbundle-maven-plugin - 1.2.0 - - - org.codehaus.plexus - plexus-archiver - 4.0.0 - - - org.apache.velocity - velocity-tools - 2.0 - - - - com.google.refine.Refine - OpenRefine - target/OpenRefine ${project.version} - ${icon.path} - true - ${project.build.directory}/${project.build.finalName}-mac-${project.version}.dmg - 1.8 - ${mac.jre.path} - - -Xms512M - -Xmx2048M - -Drefine.version=${project.version} - -Drefine.webapp=$APP_ROOT/Contents/Resources/webapp - - - - target - - OpenRefine.app/Contents/Resources/webapp/**/** - - - - - - ${rootdir}/server/target/lib/ - - *.jar - - - - ${rootdir}/server/target - - openrefine-${project.version}-server.jar - - - **/lib/** - **/org/** - - - - - - - package - - bundle - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.1.0 - - - package-distributions - - single - - package - - - linux.xml - windows.xml - - - - - org.apache.maven.plugins maven-surefire-plugin @@ -383,6 +370,94 @@ + + org.apache.maven.plugins + maven-assembly-plugin + 3.1.0 + + + package-distributions + + single + + package + + + + + + + + + + sh.tak.appbundler + appbundle-maven-plugin + 1.2.0 + + + org.codehaus.plexus + plexus-archiver + 4.0.0 + + + org.apache.velocity + velocity-tools + 2.0 + + + + com.google.refine.Refine + OpenRefine + target/OpenRefine ${project.version} + ${icon.path} + true + + ${project.build.directory}/${project.build.finalName}-mac-${project.version}.dmg + + 1.8 + ${mac.jre.path} + + -Xms512M + -Xmx2048M + -Drefine.version=${project.version} + -Drefine.webapp=$APP_ROOT/Contents/Resources/webapp + + + + target + + OpenRefine.app/Contents/Resources/webapp/**/** + + + + + + ${rootdir}/server/target/lib/ + + *.jar + + + + ${rootdir}/server/target + + openrefine-${project.version}-server.jar + + + **/lib/** + **/org/** + + + + + + + package + + bundle + + + + diff --git a/refine b/refine index 6c5ab334b..df4a3a884 100755 --- a/refine +++ b/refine @@ -387,7 +387,21 @@ dist() { get_version $1 mvn_prepare "$MVN" versions:set -DnewVersion="$VERSION" - mvn package + "$MVN" package +} + +windows_dist() { + get_version $1 + mvn_prepare + "$MVN" versions:set -DnewVersion="$VERSION" + "$MVN" package -P windows +} + +linux_dist() { + get_version $1 + mvn_prepare + "$MVN" versions:set -DnewVersion="$VERSION" + "$MVN" package -P linux } # Kept just in case someone wants to follow this workflow on a mac,