Skip to content

donald-w/sample-java9-modules-maven

Repository files navigation

A sample maven multi module project using Java 9 / Jigsaw

wercker status

Demonstrate Java 9 Module related features

  • 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)

Usage

Windows

Clean build

.\mvnw.cmd clean install

Run example

.\run.cmd

*nix

Clean build

./mvnw clean install

Run example

./run.sh

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