Maven
Steve Mak
Posted on December 10, 2020
Official Reference: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
New a Maven project
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
Clean up target folder (build folder)
mvn clean
Compile the source
mvn compile
Compile and Pack the compiled source
mvn package
Test the package
java -cp target/lt-vaadin-components-1.0-SNAPSHOT.jar <FULL_CLASS_NAME_WITH_PACKAGE>
Install local JAR to local Maven repository
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version>
💖 💪 🙅 🚩
Steve Mak
Posted on December 10, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Understanding HTTP, Cookies, Email Protocols, and DNS: A Guide to Key Internet Technologies
November 30, 2024