Build an Executable JAR with Maven
· 2 min read
A plain Maven JAR normally contains only your project's compiled classes and resources. To run it with java -jar, the archive needs a Main-Class manifest entry, and every runtime dependency must either be available on the classpath or packaged into an executable "fat" JAR.