用maven2創建工程
命令類似:mvn archetype:create
-DgroupId=com.attainware.maven2example
-DartifactId=maven2example_webapp
-DarchetypeArtifactId=maven-archetype-webapp
其中archetypeArtifactId有以下幾種選擇:-DgroupId=com.attainware.maven2example
-DartifactId=maven2example_webapp
-DarchetypeArtifactId=maven-archetype-webapp
Project Template (Archetype) | Purpose |
maven-archetype-archetype | Create your own project template (archetype). |
maven-archetype-j2ee-simple | Creates a J2EE project (EAR), with directories and subprojects for the EJBs, servlets, etc. |
maven-archetype-mojo | Create your own Maven 2 plugins. |
maven-archetype-quickstart | Simple Java project, suitable for JAR generation. Maven 2 default. |
maven-archetype-site | Documentation-only site, with examples in several formats. You can run this archetype on top of an existing Maven 2 project to add integrated documentation. |
maven-archetype-webapp | Creates a web application project (WAR), with a simple Hello World JSP. |
posted on 2007-06-03 03:00 MingIsMe 閱讀(194) 評論(0) 編輯 收藏 所屬分類: 15 敏捷開發