当前位置: 首页 > 知识库问答 >
问题:

如何修复maven异常:[ERROR]无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean

逄俊力
2023-03-14

命令的PFB完整错误日志:mvn-u clean-

null

at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:422)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:224)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:338)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal (DefaultPluginDependenciesResolver.java:210)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve (DefaultPluginDependenciesResolver.java:149)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm (DefaultMavenPluginManager.java:403)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.html" target="_blank">setupPluginRealm (DefaultMavenPluginManager.java:374)
at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm (DefaultBuildPluginManager.java:231)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:102)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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:497)
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)

原因:org.eclipse.aether.transfer.ArtifactNotFoundException:在中心(http://dummy_repo/repository/at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferfailed(artifactTransportListener.javail.48)在org.eclipse.aether.connector.java:365)在org.eclipse.aether.util.concurrency.runnableerrorforwarder$1.run(Er.ResolveArtifacts(DefaultArtifactResolver.java:224)位于org.eclipse.aether.internal.impl.DefaultArtifactResolveDependencies(DefaultArtifactResolver.java:338)位于org.apache.maven.plugin.internal.DefaultPlugIndependenciesResolver.java:210)位于org.apache.maven.plugin.internal.DefaultPlugIndependenciesResolveInternal(执行(MojoExecutor.java:154)在org.apache.maven.lifecycle.internal.mojoExecutor.java:146)在org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildProject(lifecyclemodulebuilder.java:117)在org.apache.maven.lifecyclemodulebuilder.buildProject(lifecyclemodulebuilder.java:81)在Ect.NativeMethodAccessorImpl.Invoke(NativeMethodAccessorImpl.java:62)在Sun.Reflect.DelegatingMethodAccessorImpl.java:43)在java.lang.Reflect.Method.Invoke(DelegatingMethodAccessorImpl.java:497)在org.codeHaus.Plexus.ClassWorlds.Launcher.LaunchEnhanced(Launcher.java:289)在

共有1个答案

邬良才
2023-03-14

您似乎配置了自定义存储库或代理。(http://dummy_repo/repository/)。当maven试图找到所有必需的依赖项时,它通过检查配置的存储库来实现。如果配置了non,它将使用maven Central。删除您的自定义存储库,这可能会起作用。

 类似资料: