Skip to content

Instantly share code, notes, and snippets.

@schierlm
Created December 21, 2017 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schierlm/e1efc17a64051ff52399d4504fb4fe52 to your computer and use it in GitHub Desktop.
Save schierlm/e1efc17a64051ff52399d4504fb4fe52 to your computer and use it in GitHub Desktop.
Maven freezes (infinite-loop) when building fat jar from BouncyCastle
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>bug</groupId>
<artifactId>bug</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.58</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>assemble-all</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@RevoltEnergy
Copy link

I have the same issue, how did you solve it?

@user187x
Copy link

user187x commented Feb 7, 2019

Anyone get an answer? I got the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment