Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Maven 3.1.0 compatibility #1

Open
reiz opened this issue Aug 10, 2013 · 1 comment
Open

Maven 3.1.0 compatibility #1

reiz opened this issue Aug 10, 2013 · 1 comment

Comments

@reiz
Copy link

reiz commented Aug 10, 2013

First of all. Thanks for sharing this code! It works perfect with maven 3.0.5 but since I updated to maven 3.1.0 I am getting this Exception:

Caused by: java.lang.NoClassDefFoundError: org/sonatype/aether/version/InvalidVersionSpecificationException
    at org.apache.maven.index.context.IndexUtils.constructArtifactInfo(IndexUtils.java:111)
    at org.apache.maven.index.DefaultIteratorResultSet.createNextAi(DefaultIteratorResultSet.java:225)
    at org.apache.maven.index.DefaultIteratorResultSet.<init>(DefaultIteratorResultSet.java:134)
    at org.apache.maven.index.DefaultSearchEngine.searchIteratorPaged(DefaultSearchEngine.java:282)
    at org.apache.maven.index.DefaultSearchEngine.forceSearchIteratorPaged(DefaultSearchEngine.java:264)
    at org.apache.maven.index.DefaultIndexer.searchIterator(DefaultIndexer.java:157)

I googled now for 1 hour for it but I couldn't find anything helpful.
Do you know how to resolve this error?

@reiz
Copy link
Author

reiz commented Aug 11, 2013

It seems to be a problem with maven-indexer-5.1.1. I checked out the code and refactored it. I replaced all dependencies to "org.sonatype.aether" with "org.eclipse.aether". All tests on the maven-indexer 5.1.1 are still green. I installed it into my locale repo and now I am getting this error message:

[ERROR] error in resolveDependencies 
java.lang.ClassCastException: org.eclipse.aether.internal.impl.ObjectPool cannot be cast to org.eclipse.aether.internal.impl.ObjectPool
    at org.eclipse.aether.internal.impl.DataPool.<init>(DataPool.java:69)
    at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:251)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:317)
    at versioneye.mojo.SuperMojo.resolveDependencies(SuperMojo.java:80)
    at versioneye.mojo.SuperMojo.resolveDependenciesAndParsePom(SuperMojo.java:59)
    at versioneye.mojo.SingleMojo.doUpdateProject(SingleMojo.java:52)
    at versioneye.mojo.SingleMojo.execute(SingleMojo.java:34)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    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:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)

ObjectPool cannot be cast to ObjectPool. That is so absurd.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant