Status: Closed (View Workflow)
Affects Version/s: 2017.6.1, 2017.9.4
Fix Version/s: 2017.12.1
Steps to Reproduce:
Find a reproducer repo here:
Simply checkout and execute:
Then both execution modes will fail with same error.
- mvn wildfly-swarm:run
- java -jar target/swarm-dependency-bug-0.0.1-SNAPSHOT-swarm.jar
Git Pull Request:
Having a Swarm WAR Module containing dependency...
... results in NoClassDefFoundError like this:
The dependency mentioned above contains a transitive dependency, which is not packaged into the WAR for the swarm uber jar, and that causes the NoClassDefFoundError for net/minidev/json/JSONAware. It seems to be packed into /m2repo folder.
Also declaring this dependency explicitly does not work.
Only swarm fractions and their transitive dependencies should be removed from the WAR and packed into m2repo?
I could not find net.minidev.json-smart in any dependency tree of my fractions.