[ 
https://issues.apache.org/jira/browse/SLING-7644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461992#comment-16461992
 ] 

Stefan Seifert commented on SLING-7644:
---------------------------------------

ah, the reason is this commit:
https://github.com/apache/sling-maven-sling-plugin/commit/9579510a3c3efde58319fc25749836c18c4e9644

which references
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-json_1.1_spec/1.0/geronimo-json_1.1_spec-1.0.pom
http://repo1.maven.org/maven2/org/apache/geronimo/genesis/genesis-java8-flava/2.3/genesis-java8-flava-2.3.pom

which compiles to java 8. strange why this spec requires java 8. we may 
downgrade to json spec 1.0, i assume the code has no direct dependencies to the 
API updates.

on the other hand: what speaks against just declaring the java 8 dependency for 
the maven-sling-plugin - who wants to run it with java 7? it's only required in 
the development environment.

> 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
>            Priority: Blocker
>             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