How do I create a web application project using maven?
-->
mvn archetype:create
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-webapp
-DarchetypeVersion=1.0
-DgroupId=com.maventest
-DartifactId=mywebtest
-Dversion=1.0-SNAPSHOT
mvn archetype:create
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-webapp
-DarchetypeVersion=1.0
-DgroupId=com.company
-DartifactId=project
-Dversion=1.0
Eg.: mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=com.company -DartifactId=resteasydemo -Dversion=1.0
Eg.: mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=com.company -DartifactId=resteasydemo -Dversion=1.0
How to create the war file?
Run ‘mvn install’
Reference:
http://www.avajava.com/tutorials/lessons/how-do-i-create-a-web-application-project-using-maven.html;jsessionid=2AA2F62212BBFD9D0946FB8190BF8711
How to create simple java project?
mvn archetype:generate -DgroupId=com.nuwan.springdemo -DartifactId=spring-demo -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
How to create simple java project?
mvn archetype:generate -DgroupId=com.nuwan.springdemo -DartifactId=spring-demo -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Labels: Maven