File: MAVEN.md

package info (click to toggle)
h2database 2.2.220-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,756 kB
  • sloc: java: 241,177; sql: 29,722; jsp: 835; javascript: 753; xml: 722; sh: 181; makefile: 17
file content (64 lines) | stat: -rw-r--r-- 1,192 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# H2

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 2.5 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

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:

```sh
./mvnw -Dmaven.test.skip=true package
```

or

```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.
Its configuration for native-image tool is also incomplete.
Use build script with `jar` target instead if you need a jar compatible with official builds.

### 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  
```