sonatype / nexus-ruby-support

26 stars 7 forks source link

Not compatible with Nexus 2.6.0-05 #29

Closed KAllan357 closed 11 years ago

KAllan357 commented 11 years ago

The plexus-component-metadata plugin fails to run correctly.

[ERROR] Failed to execute goal org.codehaus.plexus:plexus-component-metadata:1.5.4:generate-metadata (process-classes) on project nexus-ruby-plugin: Execution process-classes of goal org.codehaus.plexus:plexus-component-metadata:1.5.4:generate-metadata failed: An API incompatibility was encountered while executing org.codehaus.plexus:plexus-component-metadata:1.5.4:generate-metadata: java.lang.UnsupportedClassVersionError: org/sonatype/nexus/proxy/item/ContentGenerator : Unsupported major.minor version 51.0
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.codehaus.plexus:plexus-component-metadata:1.5.4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/kallan/.m2/repository/org/codehaus/plexus/plexus-component-metadata/1.5.4/plexus-component-metadata-1.5.4.jar
[ERROR] urls[1] = file:/Users/kallan/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
[ERROR] urls[2] = file:/Users/kallan/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
[ERROR] urls[3] = file:/Users/kallan/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
[ERROR] urls[4] = file:/Users/kallan/.m2/repository/com/google/collections/google-collections/1.0/google-collections-1.0.jar
[ERROR] urls[5] = file:/Users/kallan/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] urls[6] = file:/Users/kallan/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.4/plexus-component-annotations-1.5.4.jar
[ERROR] urls[7] = file:/Users/kallan/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.jar
[ERROR] urls[8] = file:/Users/kallan/.m2/repository/com/thoughtworks/qdox/qdox/1.9.2/qdox-1.9.2.jar
[ERROR] urls[9] = file:/Users/kallan/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
[ERROR] urls[10] = file:/Users/kallan/.m2/repository/org/codehaus/plexus/plexus-cli/1.2/plexus-cli-1.2.jar
[ERROR] urls[11] = file:/Users/kallan/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[12] = file:/Users/kallan/.m2/repository/commons-logging/commons-logging/1.0/commons-logging-1.0.jar
[ERROR] urls[13] = file:/Users/kallan/.m2/repository/commons-lang/commons-lang/1.0/commons-lang-1.0.jar
[ERROR] urls[14] = file:/Users/kallan/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>org.sonatype.nexus.plugins:nexus-ruby-plugin:1.0.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
mkristian commented 11 years ago

looks like there are class files compiled with java-1.7 - see also http://stackoverflow.com/questions/10382929/unsupported-major-minor-version-51-0

I guess you need to compile with jdk1.7

eddiewebb commented 11 years ago

Right, Nexus 2.6.0-05 itself requires JRE 1.7

szwed commented 11 years ago

Can't start Nexus standalone service (nexus-2.6.2-01) with Java 1.6: "Unsupported major.minor version 51.0"

It is not mentioned here: http://books.sonatype.com/nexus-book/reference/_nexus_prerequisites.html yet, but I believe that java 1.6 is not supported anymore.