Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

ConSol/java9-modules-maven-junit-example

Repository files navigation

Java 9 Modules Example with Maven and JUnit

This simple project shows how Maven can be used to build Java 9 modules.

It uses the ServiceLoader to load loosely coupled services from other modules. It also demonstrates how methods in non-exported packages can be unit-tested from the Unnamed Module simply by not modularizing the test sources.

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

Prerequisites:

  • Maven >= 3.0.0
  • JDK 9

Running the example

  • mvn clean package
  • .\run.cmd or ./run.sh

Known issues