-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Calvin
committed
Oct 7, 2014
1 parent
7bcb464
commit 9fbb219
Showing
24 changed files
with
527 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
support/maven-archetype/src/main/resources/archetype-resources/bin/jetty.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
support/maven-archetype/src/main/resources/archetype-resources/bin/jetty.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
14 changes: 7 additions & 7 deletions
14
support/maven-archetype/src/main/resources/archetype-resources/bin/package.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
support/maven-archetype/src/main/resources/archetype-resources/bin/package.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
18 changes: 9 additions & 9 deletions
18
support/maven-archetype/src/main/resources/archetype-resources/bin/refresh-db.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
support/maven-archetype/src/main/resources/archetype-resources/bin/refresh-db.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
20 changes: 10 additions & 10 deletions
20
support/maven-archetype/src/main/resources/archetype-resources/bin/smoke-test.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
support/maven-archetype/src/main/resources/archetype-resources/bin/smoke-test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...etype/src/main/resources/archetype-resources/src/main/resources/ehcache/ehcache-shiro.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
48 changes: 24 additions & 24 deletions
48
...e/src/main/resources/archetype-resources/src/main/resources/sql/h2/schema-with-oracle.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
40 changes: 20 additions & 20 deletions
40
...ven-archetype/src/main/resources/archetype-resources/src/main/resources/sql/h2/schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
); |
Oops, something went wrong.