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>
Top comments (0)