Did you build this on java 6?

I'm getting bad class version errors on java 5:

+ Error stacktraces are turned on.
-----------------------------------------------------
this realm = plexus.core
urls[0] = file:/c:/dev/tools/maven/lib/maven-2.0.9-SNAPSHOT-uber.jar
Number of imports: 0
-----------------------------------------------------
FATAL ERROR: Unable to configure the Maven application
Error stacktrace:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component 'org.apache.maven.artifact.repository.Artifact
RepositoryFactory', it could not be created
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(
DefaultPlexusContainer.java:335)
        at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
        at org.apache.maven.cli.MavenCli.createLocalRepository(MavenCli.java
:489)
        at org.apache.maven.cli.MavenCli.createRequest(MavenCli.java:412)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instanciate component: role: 'org.apache.maven.artifact.re
pository.ArtifactRepositoryFactory', implementation: '
org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory'
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException
(JavaComponentFactory.java:77)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:62)
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(
DefaultPlexusContainer.java:1464)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
(AbstractComponentManager.java:93)
        at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent
(ClassicSingletonComponentManager.java:92)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(
DefaultPlexusContainer.java:331)
        ... 12 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in
.class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(
RealmClassLoader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(
DefaultClassRealm.java:255)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
JavaComponentFactory.java:30)
        ... 16 more

On Jan 28, 2008 12:42 PM, Don Brown <[EMAIL PROTECTED]> wrote:

> On 1/28/08, Tom Huybrechts <[EMAIL PROTECTED]> wrote:
> > I just tried it out and sometimes got this error halfway through a
> build:
>
> Doh, forgot to synchronize the resolved and missing artifact lists,
> now that they can be accessed by multiple threads.  I put up a new
> version (has that and a few pool optimizations) at the same location:
>
> http://people.apache.org/~mrdon/maven-2.0.9-SNAPSHOT-uber.jar<http://people.apache.org/%7Emrdon/maven-2.0.9-SNAPSHOT-uber.jar>
>
> Don
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to