读书人

应用自定义archetype创建项目模块

发布时间: 2012-12-21 12:03:49 作者: rapoo

使用自定义archetype创建项目模块

命令行方式

1.首先进入创建项目模块的目录

2.执行mvn archetype:generate命令

mvn archetype:generate -DgroupId=com.cn.pzhsteel -DartifactId=mes-test -DarchetypeGroupId=cn.com.pzhsteel.mes.maven -DarchetypeArtifactId=mes-business-archetype -DarchetypeVersion=1.0-SNAPSHOT

?命令中有5个参数,意思分别如下:

参数名解释groupId新建项目的组织名artifactId新建项目的工件名archetypeGroupIdarchetype插件的组织名 archetypeArtifactIdarchetype插件名archetypeVersionarchetype插件版本号

读书人网 >编程

热点推荐