Skip to content

jinahya/executable-jar-with-maven-example

Repository files navigation

executable-jar-with-maven-example

Java CI with Maven StackOverflow Answer

Generates executable jar files with dependencies.

JDK

$ cat pom.xml | egrep '<maven.compiler.' 
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
    <maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
    <maven.compiler.testSource>${maven.compiler.source}</maven.compiler.testSource>
    <maven.compiler.testTarget>${maven.compiler.testSource}</maven.compiler.testTarget>
    <maven.compiler.testRelease>${maven.compiler.testTarget}</maven.compiler.testRelease>

Just build it!

$ mvn clean package

And see what you got!

$ ls -1 target

About

Generates executable jar files with dependencies

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages