dianqihanwangzi / java9-modules-maven-junit-example

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

Home Page:https://labs.consol.de/development/2017/02/13/getting-started-with-java9-modules.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://labs.consol.de/development/2017/02/13/getting-started-with-java9-modules.html


Languages

Language:Java 88.7%Language:Shell 5.9%Language:Batchfile 5.4%