VisualDataWeb / OWL2VOWL

Converting ontologies for WebVOWL
http://vowl.visualdataweb.org
MIT License
136 stars 49 forks source link

Maven - JAR generation includes various unneeded deps #31

Closed BlackDark closed 7 years ago

BlackDark commented 7 years ago

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.

TuanjieLi commented 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?

BlackDark commented 7 years ago

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

TuanjieLi commented 7 years ago

Thanks! Sorry, I didn't notice that it had been in the Instruction file.

BlackDark commented 7 years ago

Still not solved