Maven 2 Archetype Plugin 应用
来源:互联网 发布:win7电脑端口怎么设置 编辑:程序博客网 时间:2024/05/03 22:01
用法
Calling mvn archetype:create-from-project the plugin first resolves the package by guessing the project directory.
调用 mvn archetype:create-from-project,该插件首先从项目所在的目录通过猜测获取包
It then generates the directory tree of the archetype in the target generated-sources/archetype directory.
接着它会在目标文件夹target下的 generate-sources/archtype产生archetype目录树
在已有项目的根本目录,如你已有的工程 yourWorkspace/yourProject
如
yourProject/.project
pom.xml
.classpath
运行命令
mvn archetype:create-from-project
Then move to that generated directory and call mvn install on the created archetype.
然后移到生成的目录,同时在声称的archetype调用 mvn install
$ cd target/generated-sources/archetype/
$ mvn install
Finally move to a fresh directory and use your archetype.
最后移动到一个新的目录使用你的archetype
$ mkdir /tmp/archetype
$ cd /tmp/archetype
$ mvn archetype:generate -DarchetypeCatalog=local
参考例子
mvn archetype:generate -DarchetypeGroupId=yourCompany.yourPart -DarchetypeArtifactId=parent -DarchetypeRepository=http://xxx.xxx.xxx.xxx:8080/website -DarchetypeVersion=1.0 -DgroupId=yourCompany -DartifactId=projectId -Dversion=1.0
- Maven 2 Archetype Plugin 应用
- Maven Archetype Plugin
- Maven-archetype和plugin
- Maven Archetype Plugin
- Maven插件之maven-archetype-plugin
- Maven Archetype Plugin创建新工程
- 用Maven Archetype Plugin快速创建项目
- Maven Archetype Plugin创建新工程
- org.apache.maven.plugins:maven-archetype-plugin does not exist
- maven3+项目管理命令总结 (错误解决:Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2)
- eclipse通过maven-archetype-plugin插件创建项目原型
- 【[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist】解决方案
- Maven archetype
- 【Maven】Archetype
- Maven Archetype
- Maven--Archetype
- Maven Archetype
- Maven Archetype
- VC++ STL中的locale问题(2)
- windows 2008 远程桌面连接限制的问题
- 画册设计字体与色彩运用策略大比拼
- Session中存储对象
- SEO优化公式
- Maven 2 Archetype Plugin 应用
- 基于ARM+DSP进行应用开发 - 经验共享
- windows 编程 何去何从
- 禁止对方网站刷新站点页面. parent.window.opener
- http://hi.baidu.com/kacaca/blog/item/1fd412d644f9f42907088b89.html
- Java基础练习题 考试题 笔试题 面试题
- 上班!!!
- 任务管理器测试内存泄露
- Java web 开发的几个细节