提交 197daa58 authored 作者: Noel Grandin's avatar Noel Grandin

update maven docs, we don't use Java6 anymore

上级 9ec2fad0
...@@ -9,31 +9,6 @@ Welcome to H2, the Java SQL database. The main features of H2 are: ...@@ -9,31 +9,6 @@ Welcome to H2, the Java SQL database. The main features of H2 are:
## Experimental Building & Testing with Maven ## Experimental Building & Testing with Maven
### Setup JDK
Maven requires at minimum the JDK 1.7 whereas H2 is designed to be compiled against the JDK 1.6; the way in which this is
resolved is through [maven toolchains](https://maven.apache.org/guides/mini/guide-using-toolchains.html).
You simply need to create a `toolchains.xml` file in `~/.m2/` that tells maven where to find the JDK 1.6
Here is a sample file
```
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<!-- JDK toolchains -->
<toolchain>
<type>jdk</type>
<provides>
<version>1.6</version>
</provides>
<configuration>
<jdkHome>/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/</jdkHome>
</configuration>
</toolchain>
</toolchains>
```
### Building ### Building
H2 uses [Maven Wrapper](https://github.com/takari/maven-wrapper) setup, you can instruct users to run wrapper scripts: H2 uses [Maven Wrapper](https://github.com/takari/maven-wrapper) setup, you can instruct users to run wrapper scripts:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论