转到Spring Boot 2.0.0.M4和spring-boot-maven-plugin

时间:2017-10-03 09:56:06

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

我正在尝试将我的应用程序移至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>

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

1 个答案:

答案 0 :(得分:1)

看起来还没有向{maven central发布M4

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