From 9445d4d2e12e53a382e9af144e5fb9e6f5df2a95 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 9 Jul 2015 19:21:05 +0200 Subject: [client] pom.xml: Build multiplatform .jar by including all swt versions This makes maven3 mandatory! --- dozentenmodul/pom.xml | 201 +++++++++++++++++++++++++++++++------------------- 1 file changed, 125 insertions(+), 76 deletions(-) (limited to 'dozentenmodul/pom.xml') diff --git a/dozentenmodul/pom.xml b/dozentenmodul/pom.xml index 807503c3..7ddd55ad 100644 --- a/dozentenmodul/pom.xml +++ b/dozentenmodul/pom.xml @@ -12,7 +12,10 @@ UTF-8 + org.openslx.dozmod.App yy.M.d.Hmm + 4.4 + lib @@ -51,76 +54,77 @@ - maven-assembly-plugin + true + org.apache.maven.plugins + maven-enforcer-plugin + 1.3.1 - package + enforce-maven-3 - single + enforce + + + + 3.0.0 + + + true + - - - - org.openslx.dozmod.App - - - ${maven.build.timestamp} - - - - jar-with-dependencies - - org.apache.maven.plugins - maven-shade-plugin + maven-dependency-plugin + 2.10 - package + copy + prepare-package - shade + unpack - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - log4j:* - - ** - - - - commons-logging:* - - ** - - - - true - - - org.openslx.dozmod.App - - ${maven.build.timestamp} - - - + META-INF/*.SF,META-INF/*.DSA,META-INF/*.RSA + ${project.build.outputDirectory} + true + + + com.janprach.multiplatform-swt + multiplatform-swt-loader + 4.4 + multiplatform + + + + org.springframework.boot + spring-boot-maven-plugin + 1.2.5.RELEASE + + ${main.class} + + + org.eclipse.swt + ${swt.artifactId} + + + + + + + repackage + + + + + src/main/resources @@ -135,71 +139,115 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-dependency-plugin + + + [2.10,) + + + unpack + + + + + + + + + + + + - mac + linux32 - mac os x + linux + i386 - org.eclipse.swt.carbon - macosx + org.eclipse.swt.gtk.linux.x86 - windows_32 + linux64 - windows + linux + amd64 + + + + org.eclipse.swt.gtk.linux.x86_64 + + + + macosx32 + + + macosx i386 - org.eclipse.swt - org.eclipse.swt.win32.win32.x86 + org.eclipse.swt.cocoa.macosx - windows_64 + macosx64 - windows - amd64 + macosx + x86_64 - org.eclipse.swt - org.eclipse.swt.win32.win32.x86_64 + org.eclipse.swt.cocoa.macosx.x86_64 - linux_64 + win32 - linux - amd64 + windows + x86 - org.eclipse.swt - org.eclipse.swt.gtk.linux.x86_64 + org.eclipse.swt.win32.win32.x86 - linux_32 + win64 - linux - i386 + windows + amd64 - org.eclipse.swt.org.eclipse.swt.gtk.linux.x86.4.3.swt - org.eclipse.swt.gtk.linux.x86 + org.eclipse.swt.win32.win32.x86_64 @@ -218,9 +266,10 @@ compile - ${swt.groupId} + org.eclipse.swt ${swt.artifactId} - 4.4 + ${swt.version} + provided log4j -- cgit v1.2.3-55-g7522