Has anyone got maven-scr-plugin working under OpenJDK 1.7 at all?

[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr
(generate-scr-scrdescriptor) on project smx3.entity: Execution
generate-scr-scrdescriptor of goal
org.apache.felix:maven-scr-plugin:1.7.4:scr failed: An API incompatibility
was encountered while executing
org.apache.felix:maven-scr-plugin:1.7.4:scr:
java.lang.UnsupportedClassVersionError: smx3/api/EntityProvider :
Unsupported major.minor version 51.0

I see to recall seeing somewhere the other day someone mentioning something
about changes in how major.minor's are compiled/stored/checked or something
( the specifics escape me ) and I'm not sure if that was on this list, or
elsewhere.

When looking at the classes with javap they're 51.0:

Classfile
/Users/amrk/IdeaProjects/securemx/git/smx3-core/smx3.schema/target/classes/smx3/schema/Agreement.class
  Last modified 22/11/2011; size 13071 bytes
  MD5 checksum 3c69b291e4bebd5f3926b9ba88209bf1
  Compiled from "Agreement.java"
public class smx3.schema.Agreement extends java.lang.Object implements
smx3.schema.Identity<java.lang.Integer>, smx3.schema.Expirable
  Signature: #318                         //
Ljava/lang/Object;Lsmx3/schema/Identity<Ljava/lang/Integer;>;Lsmx3/schema/Expirable;
  SourceFile: "Agreement.java"
  RuntimeVisibleAnnotations:
    0: #321()
    1: #322(#323=s#324,#141=s#207)
    2: #325()
    3: #238(#239=e#240.#241)
  InnerClasses:
       public #102= #41 of #13; //AgreementBillTo=class
smx3/schema/Agreement$AgreementBillTo of class smx3/schema/Agreement
  minor version: 0
  major version: 51
  flags: ACC_PUBLIC, ACC_SUPER
Constant pool:


Any ideas?


-- 
"Great artists are extremely selfish and arrogant things" — Steven Wilson,
Porcupine Tree

Reply via email to