【问题标题】:Moving to Spring Boot 2.0.0.M4 and spring-boot-maven-plugin迁移到 Spring Boot 2.0.0.M4 和 spring-boot-maven-plugin
【发布时间】:2017-10-03 09:56:06
【问题描述】:

我正在尝试将我的应用程序迁移到 Spring Boot 2.0.0.M4

现在一切都很好,除了 spring-boot-maven-plugin 的一个问题:

Failure to find org.springframework.boot:spring-boot-maven-plugin:jar:2.0.0.M4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced    

这是插件声明:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.0.M4</version>
</parent>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

可能出了什么问题以及如何解决?

【问题讨论】:

    标签: maven spring-boot spring-boot-maven-plugin


    【解决方案1】:

    看起来还没有M4 发布到 maven Central,

    https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-maven-plugin

    添加pluginRepo,

       <pluginRepositories>
            <pluginRepository>
                <id>spring-milestones</id>
                <url>http://repo.spring.io/milestone</url>
            </pluginRepository>
        </pluginRepositories>
    

    到 POM

    哪个有 M4 里程碑。

    http://repo.spring.io/milestone/org/springframework/boot/spring-boot-maven-plugin/2.0.0.M4/

    有关 SNAPSHOT/Milestone 存储库的更多详细信息,请参阅 https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/html/getting-started-installing-spring-boot.html

    【讨论】:

      猜你喜欢
      • 2018-03-16
      • 1970-01-01
      • 1970-01-01
      • 2018-12-28
      • 2018-03-13
      • 2022-01-16
      • 2018-03-15
      • 2018-05-17
      • 2020-08-03
      相关资源
      最近更新 更多