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! 🤓
Hi there, thank your for these instructions!
Even though I added the 'jaxb-api' dependency to my project (JHipster 5.0.0.beta-1) I keep getting:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException: javax.xml.bind.JAXBException
when running
./mvnw clean compile
Could you please help me? Would you have any working example project using JHipster 5 and Java 9 or 10?