Thanks to Josh Long's Java 10 blog post for instructions!
-
Download and install Java 10. Make sure it's the version used when you run
java -version
. -
Clone the JHipster project's master branch:
git clone https://github.com/jhipster/generator-jhipster.git
-
In the cloned directory, run
npm link
. -
Create a new directory and project in it by running
jhipster
. Choose Maven as your build tool. -
Modify
pom.xml
:-
Change
java.version
to be "10". -
Confirm you have a dependency on JAXB.
<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency>
-
Change the maven-enforcer-plugin to remove the
<requireJavaVersion>
block:<requireJavaVersion> <message>You are running an incompatible version of Java. JHipster requires JDK ${java.version}</message> <version>[1.8,1.9)</version> </requireJavaVersion>
-
-
Download and install IntelliJ IDEA 2018.1.
-
Open the project in IntelliJ, add Java 10 as an SDK, and run the
Application.java
class. -
Enjoy the sweet smell of success! 🤓
@williamrussellajb
jhipster supports the LTS version of Java. The next LTS will be the 11th.
With jhipster 5.0.1 I had to add this configuration to the plugin compiler
<fork> true </ fork> <CompilerArgs> <arg> -J - -add-modules </arg> <arg> -Jjava.xml.bind </arg> </compilerArgs>
And set the property hibernate.version 5.3.1.Final