I have a library/sdk in which I created a shaded pom java-sdk-1.0.0-SNAPSHOT-shaded.pom using maven shade plugin . which contains all jars and classes which are used as dependencies . Now I want to integrate this in my sample application so that I can use it as an external library. I have copied it to my applications target folder and tried
Tag: fatjar
Adding external jar dependency in JAR file
Backgorund : I am trying to add UserStorageSPI for my legacy application, so that we can use existing user credentials to log in. I have followed this tutorial, and the full source code for the sample application is available here. This application is storing plaintext passwords and compares them directly. However, my legacy database stores the passwords in an encrypted
NoClassDefFoundError for Gradle fat jar with tests Spring Boot
I need to create fat jar in Gradle project with tests where Main method is under src/test. Now I have Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser when I run fat jar created by ‘gradle bootJar’. My Gradle: My spring.xml: Exception: Previously following ‘gradle shadowJar’ code worked well until I added AspectJ to the project And error appeared on running ‘gradle