Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

rexsl-maven-plugin doesn't work with Maven 3.1 #722

Closed
yegor256 opened this issue Sep 29, 2013 · 18 comments
Closed

rexsl-maven-plugin doesn't work with Maven 3.1 #722

yegor256 opened this issue Sep 29, 2013 · 18 comments

Comments

@yegor256
Copy link
Owner

Exception is thrown:

[INFO] --- rexsl-maven-plugin:0.5.1:package (default) @ rultor-web ---
[WARNING] Error injecting: com.rexsl.maven.PackageMojo
java.lang.NoClassDefFoundError: Lorg/sonatype/aether/RepositorySystemSession;
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
    at java.lang.Class.getDeclaredFields(Class.java:1760)
    at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:661)
    at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:366)
    at com.google.inject.internal.ConstructorBindingImpl.getInternalDependencies(ConstructorBindingImpl.java:165)
    at com.google.inject.internal.InjectorImpl.getInternalDependencies(InjectorImpl.java:609)
    at com.google.inject.internal.InjectorImpl.cleanup(InjectorImpl.java:565)
    at com.google.inject.internal.InjectorImpl.initializeJitBinding(InjectorImpl.java:551)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:865)
    at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:790)
    at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:278)
    at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:210)
    at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:986)
    at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1019)
    at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:982)
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
    at org.eclipse.sisu.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:44)
    at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
    at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
    at org.eclipse.sisu.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:134)
    at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
    at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
    at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
    at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
    at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
    at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
    at com.google.inject.Scopes$1$1.get(Scopes.java:59)
    at org.eclipse.sisu.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
    at org.eclipse.sisu.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:52)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:259)
    at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:459)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:97)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    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)
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.RepositorySystemSession
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
@yegor256
Copy link
Owner Author

@krzyk can you help?

@yegor256
Copy link
Owner Author

I'll fix it myself

yegor256 pushed a commit that referenced this issue Oct 25, 2013
@yegor256
Copy link
Owner Author

still doesn't work. I suspect it's because of jcabi/jcabi-aether#4

@krzyk
Copy link
Contributor

krzyk commented Oct 25, 2013

I had several attempts (reworked the Classpath from aehter) at this one and still there are few issues left to solve (integration tests have problems with accessing pages on http).

@yegor256
Copy link
Owner Author

In my case it's something different (not the integration test failure you describe). Do you want to pick it up and fix?

@krzyk
Copy link
Contributor

krzyk commented Oct 31, 2013

Yes, I'll make another try.

krzyk pushed a commit to krzyk/rexsl that referenced this issue Nov 10, 2013
@krzyk
Copy link
Contributor

krzyk commented Jan 9, 2014

Here I'm waiting for new release of jcabi-aether, so the new eclipse aether classes can be used.

@yegor256
Copy link
Owner Author

yegor256 commented Jan 9, 2014

Yes, right, I'll release it tomorrow morning..

@yegor256
Copy link
Owner Author

jcabi-aether 0.9 was released to Maven Central a minute ago: https://github.com/jcabi/jcabi-aether/releases/tag/jcabi-0.9

krzyk pushed a commit to krzyk/rexsl that referenced this issue Jan 11, 2014
krzyk pushed a commit to krzyk/rexsl that referenced this issue Jan 11, 2014
krzyk pushed a commit to krzyk/rexsl that referenced this issue Jan 11, 2014
krzyk added a commit to krzyk/rexsl that referenced this issue Jan 12, 2014
krzyk added a commit to krzyk/rexsl that referenced this issue Jan 12, 2014
ghost pushed a commit that referenced this issue Jan 12, 2014
#748: pull request #722 working in maven 3.1
@krzyk
Copy link
Contributor

krzyk commented Jan 31, 2014

@yegor256 I assume this is working correctly :)

@yegor256
Copy link
Owner Author

yes, thanks!

@krzyk
Copy link
Contributor

krzyk commented Feb 9, 2014

So I think now is the time for compensation :)

@yegor256 yegor256 added 1 hour and removed 30 mins labels Feb 10, 2014
@davvd
Copy link
Collaborator

davvd commented Feb 11, 2014

@krzyk I just added 30 mins to your account, many thanks for your contribution..

@krzyk
Copy link
Contributor

krzyk commented Feb 11, 2014

This bug was for 1hr, not 30mins. :)

@yegor256
Copy link
Owner Author

@davvd it's my fault, please add extra 30 minutes to @krzyk

@davvd
Copy link
Collaborator

davvd commented Feb 18, 2014

@yegor256 sorry, but @krzyk is not a member of the team

@yegor256
Copy link
Owner Author

@davvd right, my fault, I added him to our files. please add extra 30 minutes to @krzyk

@davvd
Copy link
Collaborator

davvd commented Feb 19, 2014

@yegor256 I've sent 30 mins extra to @krzyk in transaction ID "36264723"

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

No branches or pull requests

3 participants