adobe / aem-spa-project-archetype

Maven Archetype for creating new AEM SPA projects
Apache License 2.0
61 stars 32 forks source link

Java 11 not supported #60

Closed fjjimenezv closed 5 years ago

fjjimenezv commented 5 years ago

The documentation talks about "Java 1.8 or higher", but I cannot compile with Java 11.0.2. Changing to Java 1.8.121 it works

This is the detail of the error

[INFO] [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.989 s <<< FAILURE! - in com.adobe.spa.test.projects.internal.models.PageImplTest [INFO] [ERROR] testConfigChildPage(com.adobe.spa.test.projects.internal.models.PageImplTest) Time elapsed: 0.152 s <<< ERROR! [INFO] java.lang.NoClassDefFoundError: javax/annotation/PostConstruct [INFO] at com.adobe.spa.test.projects.internal.models.PageImplTest.testConfigChildPage(PageImplTest.java:213) [INFO] Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct [INFO] at com.adobe.spa.test.projects.internal.models.PageImplTest.testConfigChildPage(PageImplTest.java:213) [INFO] [INFO] [ERROR] testRequestFilteredNestedChildPages(com.adobe.spa.test.projects.internal.models.PageImplTest) Time elapsed: 0.012 s <<< ERROR! [INFO] java.lang.NoClassDefFoundError: javax/annotation/PostConstruct [INFO] at com.adobe.spa.test.projects.internal.models.PageImplTest.testRequestFilteredNestedChildPages(PageImplTest.java:235) [INFO] [INFO] [INFO] [INFO] [INFO] Results: [INFO] [INFO] [INFO] [ERROR] Errors: [INFO] [ERROR] PageImplTest.testConfigChildPage:213 » NoClassDefFound javax/annotation/PostCo... [INFO] [ERROR] PageImplTest.testRequestFilteredNestedChildPages:235 » NoClassDefFound javax/a... [INFO] [INFO] [INFO] [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 [INFO] [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Reactor Summary: [INFO] [INFO] [INFO] [INFO] Test SPA Angular Project Reactor ................... SUCCESS [ 0.403 s] [INFO] [INFO] Test SPA Angular Project Core ...................... FAILURE [ 32.001 s]

lydiapuric commented 5 years ago

Thanks for filing the issue. We will check and come back with the result.

The problem with javax.annotations is that Java 11 has removed it. They communicated this when they released Java 9. So we will have to address this issue and fix the test.

pfauchere commented 5 years ago

issue tracked internally by CQ-4266181

pfauchere commented 5 years ago

A similar work has been performed on the We.Retail Journal sample project.

See https://github.com/adobe/aem-sample-we-retail-journal/commit/6af61df13035a95fa14af79c6d5c3178ed702e10