{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6391","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6391/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6391/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6391/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/6391","id":259229221,"number":6391,"title":"Java 9 support","user":{"login":"mraible","id":17892,"avatar_url":"https://avatars3.githubusercontent.com/u/17892?v=4","gravatar_id":"","url":"https://api.github.com/users/mraible","html_url":"https://github.com/mraible","followers_url":"https://api.github.com/users/mraible/followers","following_url":"https://api.github.com/users/mraible/following{/other_user}","gists_url":"https://api.github.com/users/mraible/gists{/gist_id}","starred_url":"https://api.github.com/users/mraible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mraible/subscriptions","organizations_url":"https://api.github.com/users/mraible/orgs","repos_url":"https://api.github.com/users/mraible/repos","events_url":"https://api.github.com/users/mraible/events{/privacy}","received_events_url":"https://api.github.com/users/mraible/received_events","type":"User","site_admin":false},"labels":[{"id":95749170,"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/documentation","name":"documentation","color":"006b75","default":false},{"id":61979573,"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":707696475,"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/hacktoberfest","name":"hacktoberfest","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2017-09-20T16:41:34Z","updated_at":"2017-10-02T14:35:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"##### **Overview of the issue**\r\n\r\nJHipster should run on Java 9, especially since it's being released tomorrow (September 21). I tried downloading the latest release from http://jdk.java.net/9/.\r\n\r\nI updated my `pom.xml` to upgrade versions:\r\n\r\n```xml\r\n<java.version>1.9</java.version>\r\n<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>\r\n<maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>\r\n```\r\n\r\nWhen I run `mvn`, I get the following error:\r\n\r\n```\r\n[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ okta ---\r\n[INFO] Changes detected - recompiling the module!\r\n[INFO] Compiling 60 source files to /Users/mraible/okta-hipster/target/classes\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 3.654 s\r\n[INFO] Finished at: 2017-09-20T12:30:55-04:00\r\n[INFO] Final Memory: 43M/142M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile \r\n(default-compile) on project okta: Fatal error compiling: java.lang.NoClassDefFoundError: \r\njavax/annotation/Generated: javax.annotation.Generated -> [Help 1]\r\n```\r\n\r\nI tried adding the following (as suggested [here](https://medium.com/codefx-weekly/java-9-maven-compile-errors-module-names-kill-switches-73411c511750) to the compiler plugin's configuration, but it doesn't help.\r\n\r\n```xml\r\n<compilerArgs>\r\n    <arg>--add-modules</arg>\r\n    <arg>java.xml.bind</arg>\r\n</compilerArgs>\r\n```\r\n\r\n##### **Motivation for or Use Case**\r\n\r\nHow can JHipster be hip if it doesn't support Java 9?! ;)\r\n\r\n- [x] Checking this box is mandatory (this is just to show you read everything)\r\n"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/333553341","html_url":"https://github.com/jhipster/generator-jhipster/issues/6391#issuecomment-333553341","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6391","id":333553341,"user":{"login":"jdubois","id":316835,"avatar_url":"https://avatars1.githubusercontent.com/u/316835?v=4","gravatar_id":"","url":"https://api.github.com/users/jdubois","html_url":"https://github.com/jdubois","followers_url":"https://api.github.com/users/jdubois/followers","following_url":"https://api.github.com/users/jdubois/following{/other_user}","gists_url":"https://api.github.com/users/jdubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jdubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdubois/subscriptions","organizations_url":"https://api.github.com/users/jdubois/orgs","repos_url":"https://api.github.com/users/jdubois/repos","events_url":"https://api.github.com/users/jdubois/events{/privacy}","received_events_url":"https://api.github.com/users/jdubois/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T14:35:11Z","updated_at":"2017-10-02T14:35:11Z","author_association":"OWNER","body":"Yes I'm sure - I did a few tweaks, but the most important part is that I select that profile in Intellij IDEA (in the Maven panel), but I run the application from the \"Run...\" menu, selecting JDK 9 there.\r\nSo it's configured by Maven, but it is run as an executable Spring Boot class by Intellij."}}
{"actor":{"display_login":"jdubois"}}