【问题标题】:Spring boot not compiling春季启动不编译
【发布时间】: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


    【解决方案1】:

    打开 .m2/repository 并进入路径 org/codehaus/mojo/flatten-maven-plugin/。 删除子目录的版本号。以及所有包含的文件。下次需要它们时,Maven 会自动下载它们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-11
      • 2015-04-18
      • 2017-06-24
      • 2015-08-22
      • 2015-09-18
      • 2015-03-20
      • 2018-01-24
      • 2016-08-22
      相关资源
      最近更新 更多