Maven:无法解析的构建扩展 [英] Maven: unresolvable build extension

查看:85
本文介绍了Maven:无法解析的构建扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在看Google,没有任何东西可以真正指出这个问题.当我运行"mvn clean install"时,它返回以下错误.

I've been looking at google and nothing really points to this problem. When I run "mvn clean install" it returns the following error.

[错误]无法解析的构建扩展:插件 org.sonatype.flexmojos:flexmojos-maven-plugin:3.8或其中之一 依赖项无法解决:无法收集以下项的依赖项 org.sonatype.flexmojos:flexmojos-maven-plugin:jar:3.8()

[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:3.8 or one of its dependencies could not be resolved: Failed to collect dependencies for org.sonatype.flexmojos:flexmojos-maven-plugin:jar:3.8 ()

我正在尝试弄清楚如何导入Maven插件flexmojos,但是没有明确的指导.

I'm trying to figure out how to import the maven plugin flexmojos but there are no clear directions on how to do this.

如何将这个插件导入到我的项目中?

How would I import this plugin into my project?

ejay

推荐答案

您要查找的依赖项

The dependency you are looking for does exist. To troubleshoot this problem further we'd need to see your POM and the rest of your build output.

在黑暗中刺伤:

这是您第一次在此计算机上运行此版本吗?如果是这样,一个非常常见的陷阱"就是阻止访问Maven Central的公司防火墙.在这种情况下,解决方案是设置Maven存储库管理器,例如 Nexus ,或将Maven配置为使用HTTP代理.

Is this the first time you're running this build on this machine? If so, a very common "gotcha" is a corporate firewall preventing access to Maven Central. The solution in this case is setup a Maven repository manager like Nexus, or configure Maven to use a HTTP proxy.

这篇关于Maven:无法解析的构建扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆