好用的Maven2创建Struct2的方法
2009-08-16 13:35
190 查看
网上好多用maven2创建struct2的文章,不过能用的没有几个,Google了一下,终于找个一个,哈哈!
原文链接 http://cwiki.apache.org/confluence/display/WW/Struts+Maven+Archetypes
The Archetype will create a ready-run Struts project. Just run "mvn install" to build.
3 常用命令
To build
To create IntelliJ IDEA project files
To create Eclipse project files
To run test cases
To clean up
To package
To grab necessary JAR files etc.
To run it with Jetty
原文链接 http://cwiki.apache.org/confluence/display/WW/Struts+Maven+Archetypes
1 创建方法 mvn archetype:create -DgroupId=tutorial / -DartifactId=tutorial / -DarchetypeGroupId=org.apache.struts / -DarchetypeArtifactId=struts2-archetype-starter / -DarchetypeVersion=2.0.11.2 2 参数介绍
Name | Description |
---|---|
groupId | The id for the group the application belongs to. Usually is the root package for applications in your company, e.g. com.mycompany |
artifactId | The id for the project |
package | The base Java package to use for generated source code. Defaults to archetypeGroupId if not specified. |
archetypeGroupId | The group id of the archetype. Will always be org.apache.struts for Struts archetypes |
archetypeArtifactId | The id of the archetype |
archetypeVersion | The version of the archetype |
remoteRepositories | A list of remote repositories that contain the archetype. If deployed to the standard Maven repository or locally, this is optional |
3 常用命令
To build
mvn install
To create IntelliJ IDEA project files
mvn idea:idea
To create Eclipse project files
mvn eclipse:eclipse
To run test cases
mvn test
To clean up
mvn clean
To package
mvn package
To grab necessary JAR files etc.
mvn initialize
To run it with Jetty
mvn jetty:run
相关文章推荐
- Java创建和解析Json数据方法(二)——org.json包的使用
- Java中创建对象的四种方法
- 黑马程序员--Java基础加强--07.【反射创建对象 操作字段 调用方法的异同】【个人总结】
- ajax属性的删,修。selected,chaecked,readonly,disabled,noresize。oncilck的另一种写法。自定义创建$()。回车监听事件。追加方法
- “由于未能创建 Microsoft Visual C# 2008 编译器,因此未能打开项目 "xxx" ”的解决方法 .
- 登山-C#-为枚举创建新方法
- h5学习之2(h5的常用标签和创建方法)
- 链表创建的三种方法
- Oracle 创建Package方法
- new ActiveXObject("Scripting.FileSystemObject") 未能创建对象的解决方法
- js创建对象的7种方法
- 创建子分区模板及使用subpartitions 方法快速添加子分区
- 第一次创建div添加resizable方法,再一次进行编辑或者append操作之后resizable方法改变大小不能用解决方法
- 解析Android应用启动后自动创建桌面快捷方式的实现方法
- 序列化 对象 不需要创建文件的方法?
- JNI学习笔记:(1)开篇(2)本地代码访问Java代码 (3)本地方法取得Java属性/调用java方法 (4)本地代码创建Java对象(包括javaString) (5) 本地方法处理java数组
- Sql 2008不允许保存更改,你所做的更改要求刪除并重新创建以下表的解決方法
- Hibernate 自动创建表的方法
- (面试题)html中创建模态窗口的方法有哪些?