# pekall-archetype-plugin **Repository Path**: javaren/pekall-archetype-plugin ## Basic Information - **Project Name**: pekall-archetype-plugin - **Description**: 对 maven-archetype-plugin的增强,可以对文件名称和路径使用${}替换 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2014-08-04 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1.编译安装插件 mvn clean install -Dmaven.test.skip=true 2.编译安装archetype(Push archetype项目) mvn clean install 3.配置local catalog:将附件中的文件copy到.m2的目录下和setting.xml在同级目录。 4.执行maven插件 到需要创建spring module的文件夹下执行 ->mvn org.apache.maven.plugins:xman-archetype-plugin:2.2:generate ->Choose archetype: ->1: local -> com.pekall.archetypes:spring-module-archetype (Pekall archetype for creating a Spring module) 选择1 回车 分别根据提示输入model、artifactId、module ->Define value for property 'artifactId': : mdm-captcha ->Define value for property 'model': : captcha ->Define value for property 'module': : captcha 5.生成的module目录结构 └── mdm-captcha ├── pom.xml └── src ├── main │ ├── java │ │ └── com │ │ └── pekall │ │ └── mdm │ │ └── captcha │ │ ├── dao │ │ │ ├── captchaDao.java │ │ │ └── impl │ │ │ └── captchaDaoImpl.java │ │ ├── model │ │ │ └── captcha.java │ │ └── service │ │ ├── captchaManager.java │ │ └── impl │ │ └── captchaManagerImpl.java │ └── resources │ └── applicationContext.xml └── test ├── java │ └── com │ └── pekall │ └── mdm │ └── captcha └── resources ├── hibernate.cfg.xml └── jdbc.properties 附件 archetype-catalog.xml 内容: com.pekall.archetypes spring-module-archetype 1.0.0-SNAPSHOT http://static.appfuse.org/releases Pekall archetype for creating a Spring module