You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2021/02/04 22:14:00 UTC

[jira] [Commented] (MASFRES-41) Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

    [ https://issues.apache.org/jira/browse/MASFRES-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279206#comment-17279206 ] 

Sylwester Lachiewicz commented on MASFRES-41:
---------------------------------------------

highly depends on what you have in the maven project configuration - not enough information to diagnose the issue. Please attach a sample project to reproduce or ask on Maven's users mailing list

> Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MASFRES-41
>                 URL: https://issues.apache.org/jira/browse/MASFRES-41
>             Project: Apache Maven Resource Bundles
>          Issue Type: Bug
>          Components: apache-jar-resource-bundle
>         Environment: ubunut 18
>            Reporter: ahmed rabie
>            Priority: Major
>         Attachments: Untitled.png
>
>
> I have   spring boot  project   and  once i  run command    clean pacakge  on win vm  works fine but  in  ubuntu vm not  working fine  .
> you can find the attahment file   all mvn repo that i  have
> error message
> Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
>  at com.google.inject.Key.ensureRetainedAtRuntime(Key.java:341)
>  at com.google.inject.Key.strategyFor(Key.java:335)
>  at com.google.inject.Key.get(Key.java:219)
>  at org.eclipse.sisu.wire.ParameterKeys.<clinit>(ParameterKeys.java:28)
>  at org.eclipse.sisu.wire.DependencyAnalyzer.<init>(DependencyAnalyzer.java:93)
>  at org.eclipse.sisu.wire.ElementAnalyzer.<init>(ElementAnalyzer.java:104)
>  at org.eclipse.sisu.wire.WireModule.configure(WireModule.java:74)
>  at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
>  at com.google.inject.spi.Elements.getElements(Elements.java:103)
>  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
>  at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
>  at com.google.inject.Guice.createInjector(Guice.java:87)
>  at com.google.inject.Guice.createInjector(Guice.java:69)
>  at com.google.inject.Guice.createInjector(Guice.java:59)
>  at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
>  at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:206)
>  at org.apache.maven.cli.MavenCli.container(MavenCli.java:635)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:281)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)