In this video tutorial, I show how to create a Maven project under DOS. Then how to import it to Eclipse with m2Eclipse.
The command used is :
mvn archetype:create -DgroupId=com.company.celinio -DartifactId=SecondTuto -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
The directory structure created by the maven-archetype-webapp is the following :
SecondTuto/ SecondTuto/pom.xml SecondTuto/src/ SecondTuto/main/ SecondTuto/main/resources SecondTuto/main/webapp SecondTuto/main/webapp/index.jsp SecondTuto/main/webapp/WEB-INF SecondTuto/main/webapp/WEB-INF/web.xml
The m2Eclipse plugin for Eclipse enables you to work with Maven projects in Eclipse.
For instance, it is possible to run the INSTALL maven plugin from Eclipse to generate the WAR archive in the target folder.
Link to the video tutorial : http://www.celinio.net/tutorials/MavenTuto2.htm
Other links :
http://maven.apache.org/archetype/maven-archetype-bundles/maven-archetype-webapp/
You must be logged in to post a comment.