2010-06-17 43 views

回答

2

有Maven的2 Struts 1 Blank Archetype

$ mvn archetype:create        \ 
     -DarchetypeGroupId=org.apache.struts   \ 
     -DarchetypeArtifactId=struts-archetype-blank \ 
     -DarchetypeVersion=1.3.5      \ 
     -DgroupId=com.example       \ 
     -DpackageName=com.example.projectname   \ 
     -DartifactId=my-webapp 
0

您是否正在寻找有关Maven 2或Struts的教程? mvn archetype:生成应该是你的朋友。看看关于原型的docs

+0

使用archetype struts搜索Maven 2的教程 – Mercer 2010-06-17 09:29:46

3

如果您需要获得在struts-原型空白原型的更多信息:

第1步

的支柱-archetype-blank原型不再位于默认的Maven2存储库中。因此,您必须从http://svn.apache.org/repos/asf/struts/maven/trunk/struts-archetype-blank手动检查它。

步骤#2

建立在struts-原型空白-1.3.5-SNAPSHOT.jar文件:mvn install

步骤#3

安装原型:

mvn install:install-file 
    -DgroupId=org.apache.struts 
    -DartifactId=struts-archetype-blank 
    -Dversion=1.3.5-SNAPSHOT 
    -Dpackaging=jar 
    -Dfile=struts-archetype-blank-1.3.5-SNAPSHOT.jar 

步骤#4

创建了Struts1 Maven2的项目(如帕斯卡Thivent指出):

mvn archetype:create 
    -DarchetypeGroupId=org.apache.struts 
    -DarchetypeArtifactId=struts-archetype-blank 
    -DarchetypeVersion=1.3.5-SNAPSHOT 
    -DgroupId=com.example 
    -DpackageName=com.example.projectname 
    -DartifactId=my-webapp 

祝你好运!

相关问题