我正在尝试编译项目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>发布于 2020-08-17 13:23:04
打开.m2/存储库,转到路径org/codehaus/mojo/flatten-maven-plugin/.,在那里删除子目录版本号。以及所有包含的文件。Maven将在下次需要它们时自动下载它们。
https://stackoverflow.com/questions/63444875
复制相似问题