Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
ca4658b7
Unverified
提交
ca4658b7
authored
9月 29, 2018
作者:
Evgenij Ryazanov
提交者:
GitHub
9月 29, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1480 from katzyn/mvn
Update Maven build instruction and fix some problems
上级
1b3d7d70
0a51a4eb
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
8 行删除
+44
-8
maven-wrapper.properties
h2/.mvn/wrapper/maven-wrapper.properties
+1
-1
MAVEN.md
h2/MAVEN.md
+41
-6
pom.xml
h2/pom.xml
+2
-1
没有找到文件。
h2/.mvn/wrapper/maven-wrapper.properties
浏览文件 @
ca4658b7
distributionUrl
=
https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip
\ No newline at end of file
distributionUrl
=
https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
\ No newline at end of file
h2/MAVEN.md
浏览文件 @
ca4658b7
...
...
@@ -5,24 +5,59 @@ Welcome to H2, the Java SQL database. The main features of H2 are:
*
Very fast, open source, JDBC API
*
Embedded and server modes; in-memory databases
*
Browser based Console application
*
Small footprint: around
1.5
MB jar file size
*
Small footprint: around
2
MB jar file size
## Experimental Building & Testing with Maven
### Preparation
Use non-Maven build to create all necessary resources:
```
Batchfile
./build.cmd compile
```
or
```
sh
./build.sh compile
```
### Building
H2 uses
[
Maven Wrapper
](
https://github.com/takari/maven-wrapper
)
setup, you can instruct users to run wrapper scripts:
To build only the database jar use
```
sh
mvn
-Dmaven
.test.skip
=
true
package
```
If you don't have Maven installed use included
[
Maven Wrapper
](
https://github.com/takari/maven-wrapper
)
setup:
> $ ./mvnw clean test
```
sh
./mvnw
-Dmaven
.test.skip
=
true
package
```
or
> $ ./mvnw.cmd clean test
```
Batchfile
./mvnw.cmd -Dmaven.test.skip=true package
```
Please note that jar generated with Maven is larger than official one and it does not include OSGi attributes.
Use build script with
`jar`
target instead if you need a compatible jar.
### Testing
To run the tests use
```
sh
mvn clean
test
```
### Running
You can run the server like this
```
```
sh
mvn
exec
:java
-Dexec
.mainClass
=
org.h2.tools.Server
```
\ No newline at end of file
```
h2/pom.xml
浏览文件 @
ca4658b7
...
...
@@ -210,7 +210,7 @@
<directory>
src/test
</directory>
<includes>
<include>
org/h2/test/scripts/testSimple.in.txt
</include>
<include>
org/h2/test/scripts/
testScript
.sql
</include>
<include>
org/h2/test/scripts/
**/*
.sql
</include>
<include>
org/h2/samples/newsfeed.sql
</include>
<include>
org/h2/samples/optimizations.sql
</include>
</includes>
...
...
@@ -220,6 +220,7 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
3.1.0
</version>
<configuration>
<archive>
<manifest>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论