Advertisement
Sunilsai

Untitled

Feb 28th, 2025 (edited)
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. <plugin>
  2.     <groupId>org.apache.maven.plugins</groupId>
  3.     <artifactId>maven-antrun-plugin</artifactId>
  4.     <version>3.0.0</version>
  5.     <executions>
  6.         <execution>
  7.             <phase>package</phase>
  8.             <goals>
  9.                 <goal>run</goal>
  10.             </goals>
  11.             <configuration>
  12.                 <target>
  13.                     <echo>Removing BouncyCastle from jar</echo>
  14.                     <zip destfile="${project.build.directory}/${project.build.finalName}-without-bc.jar">
  15.                         <zipfileset src="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar">
  16.                             <exclude name="org/bouncycastle/**" />
  17.                         </zipfileset>
  18.                     </zip>
  19.                     <move file="${project.build.directory}/${project.build.finalName}-without-bc.jar"
  20.                           tofile="${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar" />
  21.                 </target>
  22.             </configuration>
  23.         </execution>
  24.     </executions>
  25. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement