Skip to content

Instantly share code, notes, and snippets.

@johnpoth
Created March 23, 2017 15:32
Show Gist options
  • Save johnpoth/0bfef67e76af0ed86348032c581709a3 to your computer and use it in GitHub Desktop.
Save johnpoth/0bfef67e76af0ed86348032c581709a3 to your computer and use it in GitHub Desktop.
<profile>
<id>jdk9-build</id>
<activation>
<jdk>9</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin-version}</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<maxmem>512M</maxmem>
<fork>true</fork>
<compilerArgs>
<arg>-J--add-modules</arg>
<arg>-Jjava.xml.bind</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment