Open reiz opened 11 years ago
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.
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:
I googled now for 1 hour for it but I couldn't find anything helpful. Do you know how to resolve this error?