├── pom.xml └── src └── main └── resources ├── META-INF └── maven │ └── archetype-metadata.xml └── archetype-resources ├── __rootArtifactId__-api ├── pom.xml └── src │ └── main │ └── java │ ├── dto │ └── DemoDto.java │ ├── enums │ └── DemoEnum.java │ ├── service │ └── DemoService.java │ └── vo │ └── DemoVO.java ├── __rootArtifactId__-core ├── pom.xml └── src │ └── main │ ├── java │ └── service │ │ └── impl │ │ └── DemoServiceImpl.java │ └── resources │ ├── applicationContext-core.xml │ ├── config.properties │ └── spring-core │ ├── spring-aop.xml │ ├── spring-dubbo.xml │ ├── spring-provider.xml │ └── spring-redis.xml ├── __rootArtifactId__-dao ├── pom.xml └── src │ └── main │ ├── java │ ├── mapper │ │ └── DemoMapper.java │ └── po │ │ └── DemoPO.java │ └── resources │ ├── applicationContext-dao.xml │ ├── config.properties │ ├── mybatis │ └── mybatis-config.xml │ └── spring-dao │ └── spring-db.xml ├── __rootArtifactId__-main ├── pom.xml └── src │ ├── main │ ├── assembly │ │ └── assembly.xml │ ├── bin │ │ ├── debug.sh │ │ ├── run.sh │ │ └── stop.sh │ ├── java │ │ └── main │ │ │ └── Runner.java │ └── resources │ │ ├── META-INF │ │ ├── app.properties │ │ └── service.properties │ │ ├── applicationContext.xml │ │ └── log4j.xml │ └── test │ └── java │ ├── ServiceUtils.java │ └── TestMain.java ├── __rootArtifactId__-mybatisGen ├── pom.xml └── src │ └── main │ └── resources │ ├── gen.sh │ ├── generator.properties │ ├── generatorConfig.xml │ └── lib │ └── mysql-connector-java-5.1.37.jar └── pom.xml /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.thebeastshop 6 | beast-archetype 7 | 1.3-SNAPSHOT 8 | jar 9 | 10 | beast-archetype 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | junit 20 | junit 21 | 3.8.1 22 | test 23 | 24 | 25 | 26 | beast-archetype 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/maven/archetype-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | com.thebeastshop 12 | 13 | 14 | test 15 | 16 | 17 | com.thebeastshop.test 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | src/main/java 26 | 27 | **/*.* 28 | 29 | 30 | 31 | src/test/java 32 | 33 | **/*.* 34 | 35 | 36 | 37 | src/main/resources 38 | 39 | **/*.* 40 | 41 | 42 | 43 | src/test/resources 44 | 45 | **/*.* 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | src/main/java 54 | 55 | **/*.* 56 | 57 | 58 | 59 | src/test/java 60 | 61 | **/*.* 62 | 63 | 64 | 65 | src/main/resources 66 | 67 | **/*.* 68 | 69 | 70 | 71 | src/test/resources 72 | 73 | **/*.* 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | src/main/java 82 | 83 | **/*.* 84 | 85 | 86 | 87 | src/test/java 88 | 89 | **/*.* 90 | 91 | 92 | 93 | src/main/resources 94 | 95 | **/*.* 96 | mapper 97 | 98 | 99 | 100 | src/test/resources 101 | 102 | **/*.* 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | src/main/java 111 | 112 | **/*.* 113 | 114 | 115 | 116 | src/test/java 117 | 118 | **/*.* 119 | 120 | 121 | 122 | src/main/resources 123 | 124 | **/*.* 125 | 126 | 127 | 128 | src/test/resources 129 | 130 | **/*.* 131 | 132 | 133 | 134 | src/main/assembly 135 | 136 | **/*.* 137 | 138 | 139 | 140 | src/main/bin 141 | 142 | **/*.* 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | src/main/java 151 | 152 | **/*.* 153 | 154 | 155 | 156 | src/test/java 157 | 158 | **/*.* 159 | 160 | 161 | 162 | src/main/resources 163 | 164 | **/*.* 165 | 166 | 167 | 168 | src/test/resources 169 | 170 | **/*.* 171 | 172 | 173 | 174 | 175 | 176 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-api/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 4.0.0 7 | 8 | 9 | com.thebeastshop 10 | base 11 | 1.2.6 12 | 13 | ${artifactId} 14 | ${version} 15 | ${artifactId} 16 | 17 | 18 | 19 | org.apache.commons 20 | commons-lang3 21 | true 22 | 23 | 24 | org.apache.commons 25 | commons-collections4 26 | true 27 | 28 | 29 | com.thebeastshop 30 | beast-common 31 | true 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/java/dto/DemoDto.java: -------------------------------------------------------------------------------- 1 | package ${package}.dto; 2 | 3 | public class DemoDto { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/java/enums/DemoEnum.java: -------------------------------------------------------------------------------- 1 | package ${package}.enums; 2 | 3 | public enum DemoEnum { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/java/service/DemoService.java: -------------------------------------------------------------------------------- 1 | package ${package}.service; 2 | 3 | public interface DemoService { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/java/vo/DemoVO.java: -------------------------------------------------------------------------------- 1 | package ${package}.vo; 2 | 3 | public class DemoVO { 4 | public static void main( String[] args ) 5 | { 6 | System.out.println( "Hello World!" ); 7 | } 8 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 4.0.0 7 | 8 | com.thebeastshop 9 | ${rootArtifactId} 10 | ${version} 11 | 12 | 13 | ${artifactId} 14 | ${artifactId} 15 | 16 | 17 | 18 | com.thebeastshop 19 | ${rootArtifactId}-api 20 | ${api.version} 21 | 22 | 23 | com.thebeastshop 24 | ${rootArtifactId}-dao 25 | ${project.parent.version} 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | maven-deploy-plugin 35 | 36 | true 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/java/service/impl/DemoServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ${package}.service.impl; 2 | 3 | public class DemoServiceImpl { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/applicationContext-core.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | dubbo.address=zookeeper\://127.0.0.1\:2181 2 | dubbo.group=dubbo-dev 3 | dubbo.port=${dubboPort} 4 | dubbo.cache.filepath=cache/${artifactId}.cache 5 | 6 | redis.pool.maxActive=200 7 | redis.pool.maxIdle=100 8 | redis.pool.maxWait=100 9 | redis.pool.testOnBorrow=true 10 | redis.ip=127.0.0.1 11 | redis.port=6379 12 | redis.password=BFdfa41Y13 -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/spring-core/spring-aop.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/spring-core/spring-dubbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/spring-core/spring-provider.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/spring-core/spring-redis.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.thebeastshop 8 | ${rootArtifactId} 9 | ${version} 10 | 11 | 12 | ${artifactId} 13 | ${artifactId} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | maven-deploy-plugin 24 | 25 | true 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/java/mapper/DemoMapper.java: -------------------------------------------------------------------------------- 1 | package ${package}.mapper; 2 | 3 | public class DemoMapper { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/java/po/DemoPO.java: -------------------------------------------------------------------------------- 1 | package ${package}.po; 2 | 3 | public class DemoPO { 4 | 5 | } -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/resources/applicationContext-dao.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | jdbcUrl=jdbc\:mysql\://127.0.0.1\:3306/dev?useUnicode\=true&characterEncoding\=utf-8&connectTimeout\=6000&socketTimeout\=6000&autoReconnect\=true&allowMultiQueries\=true&rewriteBatchedStatements\=true 2 | driverClassName=com.mysql.jdbc.Driver 3 | jdbcUsername=dev 4 | jdbcPassword=root 5 | druidFilters=stat,log4j 6 | maxActive=20 7 | initialSize=1 8 | maxWait=60000 9 | minIdle=10 10 | timeBetweenEvictionRunsMillis=60000 11 | minEvictableIdleTimeMillis=300000 12 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-dao/src/main/resources/spring-dao/spring-db.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.thebeastshop 8 | ${rootArtifactId} 9 | ${version} 10 | 11 | 12 | ${artifactId} 13 | ${artifactId} 14 | 15 | 16 | 17 | 18 | com.thebeastshop 19 | ${rootArtifactId}-api 20 | ${api.version} 21 | 22 | 23 | com.thebeastshop 24 | ${rootArtifactId}-dao 25 | ${project.parent.version} 26 | 27 | 28 | com.thebeastshop 29 | ${rootArtifactId}-core 30 | ${project.parent.version} 31 | 32 | 33 | 34 | 35 | ${artifactId} 36 | 37 | 38 | 39 | 40 | org.eclipse.m2e 41 | lifecycle-mapping 42 | 1.0.0 43 | 44 | 45 | 46 | 47 | 48 | org.apache.maven.plugins 49 | maven-dependency-plugin 50 | [1.0.0,) 51 | 52 | copy-dependencies 53 | unpack 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | org.apache.maven.plugins 70 | maven-jar-plugin 71 | 2.3.1 72 | 73 | 74 | 75 | com.thebeastshop.${artifactId}.main.Runner 76 | true 77 | ./ 78 | false 79 | 80 | 81 | 82 | 83 | 84 | maven-deploy-plugin 85 | 86 | true 87 | 88 | 89 | 90 | org.apache.maven.plugins 91 | maven-dependency-plugin 92 | 93 | 94 | copy-dependencies 95 | package 96 | 97 | copy-dependencies 98 | 99 | 100 | ${basedir}/target/lib 101 | false 102 | false 103 | true 104 | compile 105 | 106 | 107 | 108 | 109 | 110 | maven-assembly-plugin 111 | 112 | ${project.parent.name} 113 | src/main/assembly/assembly.xml 114 | 115 | 116 | 117 | make-assembly 118 | package 119 | 120 | single 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | assembly 3 | 4 | tar.gz 5 | 6 | true 7 | 8 | 9 | true 10 | lib 11 | ${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension} 12 | 13 | 14 | 15 | 16 | src/main/bin 17 | /bin 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/bin/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd `dirname $0` 3 | cd .. 4 | DEPLOY_DIR=`pwd` 5 | echo "DEPLOY_DIR=$DEPLOY_DIR" 6 | PIDS=`ps -ef | grep java | grep $DEPLOY_DIR |awk '{print $2}'` 7 | if [ -n "$PIDS" ]; then 8 | echo "ERROR: The beast-#(projectName) already started!" 9 | echo "PID: $PIDS" 10 | exit 1 11 | fi 12 | 13 | LIB_DIR=$DEPLOY_DIR/lib 14 | echo "lib dir: $LIB_DIR" 15 | MAIN_JARS=`ls $LIB_DIR|grep beast|grep main|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" " "` 16 | echo "main jar: $MAIN_JARS" 17 | nohup java -Xms128m -Xmx1024m -XX:MaxPermSize=64M -Xdebug -Xrunjdwp:transport=dt_socket,address=52006,server=y,suspend=n -jar $MAIN_JARS -console 2>/dev/null >/dev/null & 18 | 19 | COUNT=0 20 | while [ $COUNT -lt 1 ]; do 21 | echo -e ".\c" 22 | sleep 1 23 | COUNT=`ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l` 24 | if [ $COUNT -gt 0 ]; then 25 | break 26 | fi 27 | done 28 | 29 | echo "OK!" 30 | PIDS=`ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}'` 31 | echo "PID: $PIDS" -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/bin/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd `dirname $0` 3 | cd .. 4 | DEPLOY_DIR=`pwd` 5 | echo "DEPLOY_DIR=$DEPLOY_DIR" 6 | PIDS=`ps -ef | grep java | grep $DEPLOY_DIR |awk '{print $2}'` 7 | if [ -n "$PIDS" ]; then 8 | echo "ERROR: The beast-#(projectName) already started!" 9 | echo "PID: $PIDS" 10 | exit 1 11 | fi 12 | 13 | LIB_DIR=$DEPLOY_DIR/lib 14 | echo "lib dir: $LIB_DIR" 15 | MAIN_JARS=`ls $LIB_DIR|grep main|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" " "` 16 | echo "main jar: $MAIN_JARS" 17 | nohup java -Xms128m -Xmx1024m -XX:MaxPermSize=64M -jar $MAIN_JARS -console 2>/dev/null >/dev/null & 18 | 19 | COUNT=0 20 | while [ $COUNT -lt 1 ]; do 21 | echo -e ".\c" 22 | sleep 1 23 | COUNT=`ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l` 24 | if [ $COUNT -gt 0 ]; then 25 | break 26 | fi 27 | done 28 | 29 | echo "OK!" 30 | PIDS=`ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}'` 31 | echo "PID: $PIDS" -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/bin/stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd `dirname $0` 3 | cd .. 4 | APP_DIR=`pwd` 5 | PIDS=`ps -ef | grep java | grep "$APP_DIR" |awk '{print $2}'` 6 | if [ -z "$PIDS" ]; then 7 | echo "ERROR: The $APP_DIR does not started!" 8 | else 9 | kill -9 $PIDS 10 | fi -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/java/main/Runner.java: -------------------------------------------------------------------------------- 1 | package ${package}.main; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.context.support.ClassPathXmlApplicationContext; 6 | 7 | public class Runner { 8 | 9 | private static final Logger log = LoggerFactory.getLogger(Runner.class); 10 | private static ClassPathXmlApplicationContext context; 11 | 12 | public static void main(String[] args) throws Throwable { 13 | long start = System.currentTimeMillis(); 14 | context = new ClassPathXmlApplicationContext(new String[] { "/applicationContext.xml" }); 15 | context.start(); 16 | long end = System.currentTimeMillis(); 17 | log.info("beast-${artifactId} has started in " + (end - start)); 18 | while (true) { 19 | try { 20 | Thread.sleep(60000); 21 | } catch (Throwable e) { 22 | e.printStackTrace(); 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/resources/META-INF/app.properties: -------------------------------------------------------------------------------- 1 | app.name=beast-${artifactId} -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/resources/META-INF/service.properties: -------------------------------------------------------------------------------- 1 | service.name=beast-${artifactId} 2 | service.code=0001 3 | service.prefix=CD 4 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | classpath*:config.properties 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/main/resources/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/test/java/ServiceUtils.java: -------------------------------------------------------------------------------- 1 | package ${groupId}.${artifactId}.test.util; 2 | 3 | import com.alibaba.dubbo.config.ApplicationConfig; 4 | import com.alibaba.dubbo.config.ReferenceConfig; 5 | import com.alibaba.dubbo.config.RegistryConfig; 6 | 7 | public class ServiceUtils { 8 | public static S getService(Class c){ 9 | ApplicationConfig application = new ApplicationConfig(); 10 | application.setName("test"); 11 | 12 | RegistryConfig registry = new RegistryConfig(); 13 | registry.setAddress("zookeeper://127.0.0.1:2181"); 14 | registry.setGroup("dubbo-dev"); 15 | registry.setTimeout(10000); 16 | 17 | ReferenceConfig reference = new ReferenceConfig(); 18 | reference.setApplication(application); 19 | reference.setRegistry(registry); 20 | reference.setInterface(c); 21 | reference.setTimeout(30000); 22 | reference.setRetries(0); 23 | 24 | S service = reference.get(); 25 | return service; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-main/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | package ${groupId}.${artifactId}.test; 2 | 3 | import org.junit.Test; 4 | 5 | /** 6 | *

Title: thebeastshop

7 | *

Copyright: Copyright (c) 2016

8 | * @author hafiz.zhang 9 | * @date 2017-1-10 10 | * @description 11 | */ 12 | public class TestMain { 13 | @Test 14 | public void test() { 15 | // DemoService service = ServiceUtils.getService(DemoService.class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.thebeastshop 8 | ${rootArtifactId} 9 | ${version} 10 | 11 | 12 | ${artifactId} 13 | ${artifactId} 14 | 15 | 16 | 17 | 18 | org.mybatis.generator 19 | mybatis-generator-core 20 | provided 21 | 22 | 23 | 24 | 25 | 26 | 27 | maven-deploy-plugin 28 | 29 | true 30 | 31 | 32 | 33 | org.apache.maven.plugins 34 | maven-compiler-plugin 35 | 3.0 36 | 37 | 1.7 38 | 1.7 39 | 40 | 41 | 42 | org.mybatis.generator 43 | mybatis-generator-maven-plugin 44 | 1.3.2 45 | 46 | true 47 | true 48 | 49 | 50 | 51 | com.thebeastshop 52 | beast-common 53 | 1.2.16 54 | 55 | 56 | mysql 57 | mysql-connector-java 58 | 5.1.37 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/src/main/resources/gen.sh: -------------------------------------------------------------------------------- 1 | java -jar lib/mybatis-generator-core-1.3.2.jar -configfile generatorConfig-configuration.xml -overwrite -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/src/main/resources/generator.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClass=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/dev?useUnicode\=true&characterEncoding\=utf-8&connectTimeout\=6000&socketTimeout\=6000&autoReconnect\=true&allowMultiQueries\=true&rewriteBatchedStatements\=true 3 | jdbc.userId=dev 4 | jdbc.password=77xq19cx -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/src/main/resources/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 |
-------------------------------------------------------------------------------- /src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/src/main/resources/lib/mysql-connector-java-5.1.37.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hafizzhang/beast-archetype/c99598f45780e1be0d4a123ee92dbb9329106b20/src/main/resources/archetype-resources/__rootArtifactId__-mybatisGen/src/main/resources/lib/mysql-connector-java-5.1.37.jar -------------------------------------------------------------------------------- /src/main/resources/archetype-resources/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 4.0.0 5 | 6 | com.thebeastshop 7 | base 8 | 1.2.6 9 | 10 | 11 | ${groupId} 12 | ${artifactId} 13 | ${version} 14 | pom 15 | beast-${artifactId} 16 | 17 | 18 | ${version} 19 | 20 | 21 | 22 | ${rootArtifactId}-api 23 | ${rootArtifactId}-dao 24 | ${rootArtifactId}-core 25 | ${rootArtifactId}-main 26 | ${rootArtifactId}-mybatisGen 27 | 28 | 29 | 30 | 31 | junit 32 | junit 33 | test 34 | 35 | 36 | org.springframework 37 | spring-core 38 | 39 | 40 | org.springframework 41 | spring-beans 42 | 43 | 44 | org.springframework 45 | spring-context 46 | 47 | 48 | org.springframework 49 | spring-jdbc 50 | 51 | 52 | org.springframework 53 | spring-test 54 | 55 | 56 | org.springframework 57 | spring-aop 58 | 59 | 60 | org.springframework 61 | spring-context-support 62 | 63 | 64 | org.springframework 65 | spring-expression 66 | 67 | 68 | mysql 69 | mysql-connector-java 70 | 71 | 72 | com.alibaba 73 | druid 74 | 75 | 76 | org.mybatis 77 | mybatis 78 | 79 | 80 | org.mybatis 81 | mybatis-spring 82 | 83 | 84 | com.alibaba 85 | fastjson 86 | 87 | 88 | com.fasterxml.jackson.core 89 | jackson-databind 90 | 91 | 92 | org.codehaus.jackson 93 | jackson-mapper-asl 94 | 95 | 96 | log4j 97 | log4j 98 | 99 | 100 | org.slf4j 101 | slf4j-api 102 | 103 | 104 | org.apache.commons 105 | commons-lang3 106 | 107 | 108 | org.apache.commons 109 | commons-email 110 | 111 | 112 | commons-beanutils 113 | commons-beanutils 114 | 115 | 116 | commons-codec 117 | commons-codec 118 | 119 | 120 | org.quartz-scheduler 121 | quartz 122 | 123 | 124 | commons-io 125 | commons-io 126 | 127 | 128 | commons-net 129 | commons-net 130 | 131 | 132 | com.alibaba 133 | dubbo 134 | 135 | 136 | io.netty 137 | netty 138 | 139 | 140 | javassist 141 | javassist 142 | 143 | 144 | org.apache.zookeeper 145 | zookeeper 146 | 147 | 148 | com.github.sgroschupf 149 | zkclient 150 | 151 | 152 | org.springframework.data 153 | spring-data-redis 154 | 155 | 156 | redis.clients 157 | jedis 158 | 159 | 160 | com.dianping.cat 161 | cat-client 162 | 163 | 164 | net.dubboclub 165 | cat-monitor 166 | 167 | 168 | com.thebeastshop 169 | beast-common 170 | 171 | 172 | 173 | 174 | 175 | dev 176 | 177 | dev 178 | 179 | 180 | true 181 | 182 | 183 | 184 | test 185 | 186 | test 187 | 188 | 189 | 190 | pre 191 | 192 | pre 193 | 194 | 195 | 196 | prod 197 | 198 | prod 199 | 200 | 201 | 202 | 203 | --------------------------------------------------------------------------------