maven: maven创建工程,web工程等-普通java app, web app

创建app

 

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-simple -DgroupId=com.molly.simpleapp -DartifactId=app-3

 

 

创建webapp

 

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.molly.springtest.web3 -DartifactId=spring-web-3

 

 

 

参看maven官方网站

http://maven.apache.org/guides/getting-started/index.html


这个地方有archetypeAritfactId的不用参数代表的不同project类型的解释

http://maven.apache.org/archetype/maven-archetype-bundles/

posted @ 2010-08-21 21:42  foward.molly.宝儿  阅读(877)  评论(0编辑  收藏  举报