Skip to content

Commit

Permalink
h2支持工具升级
Browse files Browse the repository at this point in the history
  • Loading branch information
三寻 committed Dec 10, 2015
1 parent 49c28a8 commit 8acc679
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
6 changes: 5 additions & 1 deletion support/h2/README.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Command to open a H2 web console or run a standalone H2 Database server.
使用命令启动H2数据库服务,对应脚本:

1. h2-console.[sh|bat] -> 启动H2数据库控制台,
在JDBC URL中输入:jdbc:h2:file:~/kft-activiti-demo;AUTO_SERVER=TRUE 后可以连接DEMO的默认数据库
2. h2-server.[sh|bat] -> 作为Server启动服务
1 change: 1 addition & 0 deletions support/h2/h2-console.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
cd %~dp0
call mvn exec:java -Ph2console
pause
4 changes: 3 additions & 1 deletion support/h2/h2-console.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
mvn exec:java -Ph2console
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
mvn exec:java -Ph2console
1 change: 1 addition & 0 deletions support/h2/h2-server.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
cd %~dp0
call mvn exec:java -Ph2server
pause
4 changes: 3 additions & 1 deletion support/h2/h2-server.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
mvn exec:java -Ph2server
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
mvn exec:java -Ph2server
6 changes: 3 additions & 3 deletions support/h2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.173</version>
<version>1.4.180</version>
<scope>runtime</scope>
</dependency>
</dependencies>
Expand All @@ -25,7 +25,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.4.0</version>
<executions>
<execution>
<goals>
Expand All @@ -52,7 +52,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.4.0</version>
<executions>
<execution>
<goals>
Expand Down

0 comments on commit 8acc679

Please sign in to comment.