Skip to content

Commit

Permalink
update archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin committed Oct 7, 2014
1 parent 7bcb464 commit 9fbb219
Show file tree
Hide file tree
Showing 24 changed files with 527 additions and 481 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<directory>bin</directory>
<includes>
<include>**/*.bat</include>
<include>**/*.sh</include>
</includes>
</fileSet>
</fileSets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@echo off
echo [INFO] Use maven jetty-plugin run the project.

cd %~dp0
cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
call mvn jetty:run -Djetty.port=8080

cd bin
@echo off
echo [INFO] Use maven jetty-plugin run the project.

cd %~dp0
cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
call mvn jetty:run -Djetty.port=8080

cd bin
pause
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "[INFO] Use maven jetty-plugin run the project."

cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m

mvn jetty:run -Djetty.port=8080

cd bin
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@echo off
echo [INFO] Package the war in target dir.

cd %~dp0
cd ..
call mvn clean package -Dmaven.test.skip=true
cd bin
@echo off
echo [INFO] Package the war in target dir.

cd %~dp0
cd ..
call mvn clean package -Dmaven.test.skip=true
cd bin
pause
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo "[INFO] Package the war in target dir."

cd ..

mvn clean package -Dmaven.test.skip=true

cd bin
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@echo off
echo [INFO] Re-create the schema and provision the sample data.

cd %~dp0
cd ..

call mvn antrun:run -Prefresh-db

cd bin
@echo off
echo [INFO] Re-create the schema and provision the sample data.

cd %~dp0
cd ..

call mvn antrun:run -Prefresh-db

cd bin
pause
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo "[INFO] Re-create the schema and provision the sample data."

cd ..

mvn antrun:run -Prefresh-db

cd bin
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@echo off
echo [INFO] run smoking functional test.

cd %~dp0
cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
call mvn clean test -Pfunctional-test,run-smoke

cd bin
@echo off
echo [INFO] run smoking functional test.

cd %~dp0
cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
call mvn clean test -Pfunctional-test,run-smoke

cd bin
pause
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "[INFO] run smoking functional test."

cd ..

set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m

mvn clean test -Pfunctional-test,run-smoke

cd bin
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@
<properties>
<!-- 主要依赖库的版本定义 -->
<springside.version>4.2.3-GA</springside.version>
<spring.version>4.0.2.RELEASE</spring.version>
<hibernate.version>4.3.1.Final</hibernate.version>
<spring-data-jpa.version>1.4.4.RELEASE</spring-data-jpa.version>
<tomcat-jdbc.version>7.0.52</tomcat-jdbc.version>
<spring.version>4.0.5.RELEASE</spring.version>
<hibernate.version>4.3.5.Final</hibernate.version>
<spring-data-jpa.version>1.6.0.RELEASE</spring-data-jpa.version>
<tomcat-jdbc.version>7.0.53</tomcat-jdbc.version>
<sitemesh.version>2.4.2</sitemesh.version>
<shiro.version>1.2.2</shiro.version>
<shiro.version>1.2.3</shiro.version>
<hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
<jackson.version>2.3.1</jackson.version>
<jackson.version>2.4.0</jackson.version>
<aspectj.version>1.7.4</aspectj.version>
<slf4j.version>1.7.6</slf4j.version>
<logback.version>1.1.1</logback.version>
<commons-lang3.version>3.2.1</commons-lang3.version>
<guava.version>16.0.1</guava.version>
<slf4j.version>1.7.7</slf4j.version>
<logback.version>1.1.2</logback.version>
<commons-lang3.version>3.3.2</commons-lang3.version>
<guava.version>17.0</guava.version>
<junit.version>4.11</junit.version>
<assertj.version>1.5.0</assertj.version>
<assertj.version>1.6.1</assertj.version>
<mockito.version>1.9.5</mockito.version>
<selenium.version>2.40.0</selenium.version>
<jetty.version>7.6.14.v20131031</jetty.version>
<h2.version>1.3.175</h2.version>
<selenium.version>2.42.2</selenium.version>
<jetty.version>7.6.15.v20140411</jetty.version>
<h2.version>1.3.176</h2.version>

<!-- Plugin的属性定义 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -38,28 +38,28 @@
<jdbc.driver.groupId>com.h2database</jdbc.driver.groupId>
<jdbc.driver.artifactId>h2</jdbc.driver.artifactId>
<jdbc.driver.version>${h2.version}</jdbc.driver.version>
<!--
<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
<jdbc.driver.version>5.1.22</jdbc.driver.version>
<!--
<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
<jdbc.driver.version>5.1.22</jdbc.driver.version>
-->
</properties>

<prerequisites>
<maven>3.0.0</maven>
</prerequisites>

<!-- 设定插件仓库, 如有Nexus私服, 取消注释并指向正确的服务器地址.
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- 设定插件仓库, 如有Nexus私服, 取消注释并指向正确的服务器地址.
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
-->

<!-- 依赖项定义 -->
Expand Down Expand Up @@ -154,6 +154,11 @@
<artifactId>shiro-ehcache</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.9</version>
</dependency>
<!-- SECURITY end -->

<!-- JSR303 BeanValidator -->
Expand Down Expand Up @@ -315,12 +320,12 @@
</exclusions>
</dependency>

<!-- h2 如果生产数据库不是H2,解开下面的注释
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
<!-- h2 如果生产数据库不是H2,解开下面的注释
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
-->

<!-- jetty -->
Expand Down Expand Up @@ -351,7 +356,7 @@
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.6.8</version>
<version>2.6.9</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
<ehcache updateCheck="false" name="shiroCache">

<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>
<ehcache updateCheck="false" name="shiroCache">

<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="false"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>
</ehcache>
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
drop table if exists ${tablePrefix}task;
drop table if exists ${tablePrefix}user;

create table ${tablePrefix}task (
id bigint,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
);

create table ${tablePrefix}user (
id bigint,
login_name varchar(64) not null unique,
name varchar(64) not null,
password varchar(255) not null,
salt varchar(64) not null,
roles varchar(255) not null,
register_date timestamp not null,
primary key (id)
);


create sequence ${tablePrefix}seq_task start with 100 increment by 20;
drop table if exists ${tablePrefix}task;
drop table if exists ${tablePrefix}user;

create table ${tablePrefix}task (
id bigint,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
);

create table ${tablePrefix}user (
id bigint,
login_name varchar(64) not null unique,
name varchar(64) not null,
password varchar(255) not null,
salt varchar(64) not null,
roles varchar(255) not null,
register_date timestamp not null,
primary key (id)
);


create sequence ${tablePrefix}seq_task start with 100 increment by 20;
create sequence ${tablePrefix}seq_user start with 100 increment by 20;
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
drop table if exists ${tablePrefix}task;
drop table if exists ${tablePrefix}user;

create table ${tablePrefix}task (
id bigint generated by default as identity,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
);

create table ${tablePrefix}user (
id bigint generated by default as identity,
login_name varchar(64) not null unique,
name varchar(64) not null,
password varchar(255) not null,
salt varchar(64) not null,
roles varchar(255) not null,
register_date timestamp not null,
primary key (id)
drop table if exists ${tablePrefix}task;
drop table if exists ${tablePrefix}user;

create table ${tablePrefix}task (
id bigint generated by default as identity,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
);

create table ${tablePrefix}user (
id bigint generated by default as identity,
login_name varchar(64) not null unique,
name varchar(64) not null,
password varchar(255) not null,
salt varchar(64) not null,
roles varchar(255) not null,
register_date timestamp not null,
primary key (id)
);
Loading

0 comments on commit 9fbb219

Please sign in to comment.