1

I have a custom appliction, build in maven, with dependencies (more custom modules, and some other things like spring, apache commons and log4j).

How can I build an executable jar containing my application and all of it's dependencies? (I.e. what do I need to put in my pom.xml)

I am aware that it will be several megabytes in size, but I am looking for simplicity in building and executing my application.

And I would like to build via standard mvn clean install command.

vikingsteve
  • 38,481
  • 23
  • 112
  • 156

1 Answers1

1

Check out maven shade plugin. https://maven.apache.org/plugins/maven-shade-plugin/

crea1
  • 11,077
  • 3
  • 36
  • 46