
# A sample maven multi module project using Java 9 / Jigsaw

## Originally Based on [ConSol/java9-modules-maven-junit-example]

[![wercker status](https://app.wercker.com/status/dc456049b9fa96a5bcb8b40fc06fff69/m/master "wercker status")](https://app.wercker.com/project/byKey/dc456049b9fa96a5bcb8b40fc06fff69)

Read more in their blog post: [Getting Started with Java 9 Modules]

Demonstrates a few things:
* How to invoke test module internals using JUnit
* How to use `ServiceLoader` to discover services provided by modules

## Build / Run

### Windows
* `.\mvnw.cmd clean install`
* `.\run.cmd`

### *nix
* `./mvnw clean install`
* `./run.sh`

## TODO

* Figure out an alternative to run.cmd / run.sh !
* Set ModuleMainClass directly when the maven-jar-plugin supports it: https://issues.apache.org/jira/browse/MJAR-238

[Getting Started with Java 9 Modules]: https://labs.consol.de/development/2017/02/13/getting-started-with-java9-modules.html
[ConSol/java9-modules-maven-junit-example]: https://github.com/ConSol/java9-modules-maven-junit-example/

# A sample maven multi module project using Java 9 / Jigsaw

## Originally Based on [ConSol/java9-modules-maven-junit-example]

[![wercker status](https://app.wercker.com/status/dc456049b9fa96a5bcb8b40fc06fff69/m/master "wercker status")](https://app.wercker.com/project/byKey/dc456049b9fa96a5bcb8b40fc06fff69)

Read more in their blog post: [Getting Started with Java 9 Modules]

Demonstrates a few things:
* How to invoke test module internals using JUnit
* How to use `ServiceLoader` to discover services provided by modules
* How to use jlink to build a custom runtime using maven (See jigsaw-jlink project)

## Build / Run

### Windows
* `.\mvnw.cmd clean install`
* `.\run.cmd`

### *nix
* `./mvnw clean install`
* `./run.sh`

## TODO

* Figure out an alternative to run.cmd / run.sh !
* Set ModuleMainClass directly when the maven-jar-plugin supports it: https://issues.apache.org/jira/browse/MJAR-238

[Getting Started with Java 9 Modules]: https://labs.consol.de/development/2017/02/13/getting-started-with-java9-modules.html
[ConSol/java9-modules-maven-junit-example]: https://github.com/ConSol/java9-modules-maven-junit-example/
Update readme to refer to jlink build
Update readme to refer to jlink build
