【发布时间】:2020-08-19 13:34:00
【问题描述】:
我正在尝试编译项目https://github.com/spring-cloud/spring-cloud-aws,但父项目引用了flatten-maven-plugin,因此我收到了错误。
如果此插件是公开的,我不确定为什么会收到如下错误。我无法摆脱这个插件。我在 git 项目上开了一张票,但它可能没有得到任何答案。
Error resolving version for plugin 'org.codehaus.mojo:flatten-maven-plugin' from the repositories [local (C:\Users\ranajit.jana\.m2\repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository pom.xml /spring-cloud-aws-**** line 1 Maven pom Loading Problem
我正在编译这段代码,因为我想进行一些更改。
有人知道可以做什么吗?
==============================
现在已经解决了。
这是 repo 问题,插件 repo 指向 repo1.maven.apache.org/maven2 无法解析此插件。
我必须添加以下内容才能解决此问题.. 这是作为一个额外的插件仓库添加的
<pluginRepository>
<id>maven-plugin-repo-mvn</id>
<name>Maven plugin repo maven</name>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
【问题讨论】:
标签: spring-cloud spring-cloud-aws