Closed BlackDark closed 7 years ago
When I run "mvn clean compile package", the generated jar is only 143K and doesn't include any spring/tomcat related package.
May I ask how you get the JAR including those?
Check the README:
To build a jar file that can be executed standalone, you have to use the package option with parameter: mvn package -Denv=standalone
or mvn package -P standalone-release
Thanks! Sorry, I didn't notice that it had been in the Instruction file.
Still not solved
Currently the maven goal for packaging a JAR file includes all available dependencies. This includes for example:
This is related to the start of the project in which i developed only the JAR archive. At this time we didn't have the focus on the WAR archive and server related stuff.
Possible solution: Include the maven shade plugin to remove unwanted deps for JAR execution with filter rules.