AEM 6.2 and Java 8 maven project POM
As per the the recommended Java version for AEM 6.2 is Java 8. I was just looking at the POM used in we.retail reference github page as this package is intended for AEM 6.2. https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail/blob/master/pom.xml.
Here I could see that maven compiler plugin uses Java Source and Target as 1.6. Could anyone please let me know if the sources for AEM 6.2 has to be compiled against 1.8.
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <source>1.8</source> | |
| <target>1.8</target> | |
| <encoding>UTF-8</encoding> | |
| </configuration> | |
| </plugin> |
Also it would be really great to understand which are the recommended versions to be used for compiler plugin, scr annotations plugin etc.in AEM 6.2 project POM. Any pointers or thoughts would be really appreciated.
Best regards
Paul