Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>3.0.0</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <echo>Removing BouncyCastle from jar</echo>
- <zip destfile="${project.build.directory}/${project.build.finalName}-without-bc.jar">
- <zipfileset src="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar">
- <exclude name="org/bouncycastle/**" />
- </zipfileset>
- </zip>
- <move file="${project.build.directory}/${project.build.finalName}-without-bc.jar"
- tofile="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar" />
- </target>
- </configuration>
- </execution>
- </executions>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement