Carsten Ziegeler created SLING-7644:
---------------------------------------

             Summary: Maven-Sling-Plugin requires Java 8
                 Key: SLING-7644
                 URL: https://issues.apache.org/jira/browse/SLING-7644
             Project: Sling
          Issue Type: Bug
          Components: Maven Plugins and Archetypes
    Affects Versions: Maven Sling Plugin 2.3.4
            Reporter: Carsten Ziegeler
             Fix For: Maven Sling Plugin 2.3.6


When using the maven sling plugin 2.3.4 with Java 7, the following error occurs:

[ERROR] Failed to execute goal 
org.apache.sling:maven-sling-plugin:2.3.4:generate-adapter-metadata 
(generate-adapter-metadata) on project org.apache.sling.resourceresolver: 
Execution generate-adapter-metadata of goal 
org.apache.sling:maven-sling-plugin:2.3.4:generate-adapter-metadata failed: An 
API incompatibility was encountered while executing 
org.apache.sling:maven-sling-plugin:2.3.4:generate-adapter-metadata: 
java.lang.UnsupportedClassVersionError: javax/json/JsonException : Unsupported 
major.minor version 52.0
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.sling:maven-sling-plugin:2.3.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = 
file:/Users/cziegeler/.m2/repository/org/apache/sling/maven-sling-plugin/2.3.4/maven-sling-plugin-2.3.4.jar
[

Reverting to version 2.3.2 fixes the problem



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to