Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3311

UnsupportedClassVersionError thrown by BndMavenPlugin when liferay-faces-bridge-api-4.x is built with JDK 1.6

    Details

      Description

      This problem occurs because the bnd-maven-plugin was built with JDK 1.6.

      Steps to Reproduce:

      (Mac)

      JAVA6_MAVEN_HOME=$HOME/Tools/apache-maven-3.2.5-java6/bin
      export JAVA_HOME=$(/usr/libexec/java_home -v 1.6) ; PATH=$JAVA_HOME/bin:$JAVA6_MAVEN_HOME:$PATH
      cd liferay-faces-bridge-api-4.x/bridge-api
      mvn clean install
      

      Expected Result

      The build completes successfully.

      Actual Result

      Caused by: java.lang.UnsupportedClassVersionError: aQute/bnd/maven/plugin/BndMavenPlugin : Unsupported major.minor version 51.0
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
      	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      	at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
      	... 41 more
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: