I am trying to build an amp through maven but the problem is Im getting the below error. Did some research, found that I have to downgrade my java's jdk version from 8 to 6. Now the problem is Debian (linux) doesn't support jdk 1.6 or lower than it.
Does anyone know any alternative solution for this problem.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project userreports-platform: Compilation failure
[ERROR] /home/junaid/userreports/userreports-platform/src/main/java/com/virtuosoft/userreports/platformsample/DemoComponent.java:[22,43] cannot access org.alfresco.service.cmr.repository.NodeRef
[ERROR] bad class file: /home/junaid/.m2/repository/org/alfresco/alfresco-data-model/8.50.1/alfresco-data-model-8.50.1.jar(org/alfresco/service/cmr/repository/NodeRef.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
Syed Junaid Hussain.