Thursday, July 19, 2012

Maven java project archetype

If you use maven, you like to use archetype to get all benefits of maven.
To create maven java project, you can use below command below.

It's an example to create sample archetype.

mvn archetype:generate -DgroupId=com.example -DartifactId=test -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Then you can simply go under test directory and run below command
mvn eclipse:eclipse

After that, simply import this project into eclipse