Skip to content

Instantly share code, notes, and snippets.

@icshih
Last active February 27, 2018 13:11
Show Gist options
  • Save icshih/0469ef2b5f2b98925ea1fe14d5a98cba to your computer and use it in GitHub Desktop.
Save icshih/0469ef2b5f2b98925ea1fe14d5a98cba to your computer and use it in GitHub Desktop.
maven build for Java 9
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<release>9</release>
</configuration>
</plugin>
</plugins>
</build>
@icshih
Copy link
Author

icshih commented Feb 27, 2018

You need to use the right plugin version (>3.6.2) to handle module-info.java properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment