如何修复番石榴gwt中的“ MVN安装”错误

时间:2019-03-30 11:05:19

标签: maven guava

我正在尝试使用命令mvn install构建Guava 27.0.1。 得到以下错误 [错误]无法在项目guava-gwt上执行目标:无法解析项目com.google.guava:guava-gwt:jar:27.0.1-jre的依赖项:找不到工件com.google.guava:guava-tests :jar:tests:27.0.1-jre in central(https://repo.maven.apache.org/maven2)-> [Help 1]

有什么可能解决此问题的解决方法 使用的命令。 mvn install

谢谢

错误日志 由以下原因引起:org.eclipse.aether.transfer.ArtifactNotFoundException:无法在https://oss.sonatype.org/content/repositories/google-snapshots/中找到com.google.guava:guava-tests:jar:tests:27.0.1-jre缓存在本地存储库中,解决方法在sonatype-google-snapshots的更新间隔过去或强制进行更新之前,请勿重新尝试     在org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:217)     在org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)     在org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:554)     在org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:472)     在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:390)     在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215)     在org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:325)     在org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:202)     在org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:243)     在org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:147)     在org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:248)     在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:202)     在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)     在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)     在org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)     在org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)     在org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)     在org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)     在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)     在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)     在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)     在org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)     在org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)     在org.apache.maven.cli.MavenCli.main(MavenCli.java:192)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)     在org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)     在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)     在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

0 个答案:

没有答案