Installing maven by using mvn.
go to the default workstation for you eclipse then type:
mvn archetype:generate -DgroupId=com.dynamicobjx -DartifactId=MyWebApp -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp
create src/main/java folder inside the MyWebApp using mkdir /src/main/java
mvn eclipse:eclipse to make it an eclipse project.
create 2 tomcat user using nano /usr/share/tomcat6/conf/tomcat-users.xml
admin - "" - tomcat,manager
tomcat - tomcat - tomcat, manager
mvn tomcat:deploy
mvn clean tomcat:redeploy - to redeploy project
mvn dependency:resolve eclipse:eclipse - you add a dependency in pom.xml
No comments:
Post a Comment