summaryrefslogtreecommitdiff
path: root/BKUApplet/pom.xml
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-05-26 13:26:29 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-05-26 13:26:29 +0000
commit4bdeb7c8f9b38f6f7bdf49a0da7ab7a21af849f5 (patch)
tree9f7aa96a4a2305983adbdd57ce8aa26da689c4c4 /BKUApplet/pom.xml
parent46a6babcf74ee4eaa01002c30d9975c6ba12b611 (diff)
downloadmocca-4bdeb7c8f9b38f6f7bdf49a0da7ab7a21af849f5.tar.gz
mocca-4bdeb7c8f9b38f6f7bdf49a0da7ab7a21af849f5.tar.bz2
mocca-4bdeb7c8f9b38f6f7bdf49a0da7ab7a21af849f5.zip
Proguard is used to assemble and shrink BKUApplet jar.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@742 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUApplet/pom.xml')
-rw-r--r--BKUApplet/pom.xml111
1 files changed, 91 insertions, 20 deletions
diff --git a/BKUApplet/pom.xml b/BKUApplet/pom.xml
index e0fa9edd..3f8ed4fe 100644
--- a/BKUApplet/pom.xml
+++ b/BKUApplet/pom.xml
@@ -13,24 +13,67 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack</id>
- <goals>
- <goal>unpack-dependencies</goal>
- </goals>
- <configuration>
- <includeScope>runtime</includeScope>
- <!-- don't include transitive dependency BKUFonts [runtime] from BKUCommonGUI -->
- <excludeTransitive>false</excludeTransitive>
- <outputDirectory>${project.build.outputDirectory}</outputDirectory>
- <excludes>META-INF\/</excludes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
+ <groupId>com.pyx4me</groupId>
+ <artifactId>proguard-maven-plugin</artifactId>
+ <version>2.0.4</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>proguard</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <obfuscate>false</obfuscate>
+ <options>
+ <option>-keep public class * extends at.gv.egiz.smcc.SignatureCard { *; }</option>
+ <option>-keep public class * extends java.applet.Applet { *; }</option>
+ <option>-keep @javax.xml.bind.annotation.** class * { *; }</option>
+ <option>-ignorewarnings</option>
+ <option>-dontoptimize</option>
+ <option>-dontpreverify</option>
+ <option>-target 1.6</option>
+ </options>
+ <libs>
+ <lib>${java.home}/jre/lib/rt.jar</lib>
+ <lib>${java.home}/jre/lib/jce.jar</lib>
+ <lib>${java.home}/jre/lib/jsse.jar</lib>
+ </libs>
+ <assembly>
+ <inclusions>
+ <inclusion>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>smcc</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>STAL</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>STALService</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>smccSTAL</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>BKUCommonGUI</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </inclusion>
+ <inclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-jdk14</artifactId>
+ </inclusion>
+ </inclusions>
+ </assembly>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>maven-buildnumber-plugin</artifactId>
<executions>
@@ -77,9 +120,37 @@
<verify>true</verify>
</configuration>
</plugin>
+
</plugins>
+ <pluginManagement>
+ <plugins>
+ </plugins>
+ </pluginManagement>
</build>
- <profiles>
+ <profiles>
+ <profile>
+ <id>proguard-osx</id>
+ <activation>
+ <os>
+ <family>mac</family>
+ </os>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.pyx4me</groupId>
+ <artifactId>proguard-maven-plugin</artifactId>
+ <configuration>
+ <libs>
+ <lib>${java.home}/../Classes/classes.jar</lib>
+ <lib>${java.home}/lib/jce.jar</lib>
+ <lib>${java.home}/../Classes/jsse.jar</lib>
+ </libs>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>pkcs11-sign</id>
<build>
@@ -139,7 +210,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
- <scope>runtime</scope>
+ <scope>compile</scope>
<optional>true</optional>
</dependency>
</dependencies>