解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom
解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom问题:在配置springboot打包工具的时候遇到错误提示:Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom解决:加入以下配置,如果还是
·
解决Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom
问题:
在配置springboot打包工具的时候遇到错误提示:
Could not find artifact org.springframework.boot:spring-boot-maven-plugin:pom
解决:
加入以下配置,如果还是报错,重启idea即可解决
<build>
<plugins>
<!-- 打jar包时如果不配置该插件,打出来的jar包没有清单文件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.6.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
注意:
如果是继承springboot父项目可以不需要添加版本号,如果是导入springboot依赖,则在添加插件时需要添加版本号。
更多推荐
已为社区贡献3条内容
所有评论(0)