CloudenabledStaticApp maven java-junit project
-- Install Java -- Install maven -- $sudo apt-get update -- $sudo apt-get install maven -- $mvn -version
To create a simple java project using maven, you need to open command prompt and run the archetype:generate command of mvn tool:
mvn archetype:generate -DgroupId=com.javatpoint -DartifactId=CubeGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
- Automatically Generated pom.xml file
- Automatically Generated App.java file
- Automatically Generated AppTest.java file
mvn clean compile
java com.javatpoint.App
mvn package
java -classpath target/CloudenabledStaticApp-1.0-SNAPSHOT.jar:.: com.javatpoint.App