Created
September 10, 2013 06:36
-
-
Save leewin12/6505726 to your computer and use it in GitHub Desktop.
org.bouncycastle + maven shade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.x</groupId> | |
<artifactId>y</artifactId> | |
<name>z</name> | |
<packaging>jar</packaging> | |
<version>1.0.0</version> | |
<properties> | |
<org.jasypt-version>1.9.0</org.jasypt-version> | |
</properties> | |
<dependencies> | |
<!-- crypto Util --> | |
<dependency> | |
<groupId>org.jasypt</groupId> | |
<artifactId>jasypt</artifactId> | |
<version>${org.jasypt-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jasypt</groupId> | |
<artifactId>jasypt-hibernate3</artifactId> | |
<version>${org.jasypt-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.bouncycastle</groupId> | |
<artifactId>bcprov-jdk16</artifactId> | |
<version>1.46</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.7</source> | |
<target>1.7</target> | |
<encoding>UTF-8</encoding> | |
<compilerArgument>-Xlint:all</compilerArgument> | |
<showWarnings>true</showWarnings> | |
<showDeprecation>true</showDeprecation> | |
</configuration> | |
</plugin> | |
<!-- Build jar --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.0</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<transformers> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<mainClass>com.x.y.Main</mainClass> | |
</transformer> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> | |
<resource>META-INF/spring.handlers</resource> | |
</transformer> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> | |
<resource>META-INF/spring.schemas</resource> | |
</transformer> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> | |
<resource>META-INF/spring.tooling</resource> | |
</transformer> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> | |
</transformers> | |
<filters> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rasanka sorry, I have no idea about that problem.
@mwarner1 thank you for sharing experience.