You are on page 1of 3

MAVEN

Step 1: Install latest java version and set its path in edit environment variables
use command java –version to check its version

Step 2: Install maven and set its path


use command mvn –version to check its version

Step 3: To generate new project use the command mvn archetype:generate

The project is generated at the specified location

Step 4: Open Git bash at from the project directory


Step 5: To add API go to the central repository at search.maven.org

Step 6: Copy the dependecy specified and paste it under dependencies in the pom.xml file
Step 7: For source files to create target files enter mvn test

Step 8: To generate class files for that java files

Step 9: Create an executable jar file of our project use command mvn package

You might also like