javawhy
javawhy
采纳率30%
2019-02-27 14:31 浏览 2.7k
已采纳

springboot maven打jar包异常

5

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
:2.0.6.RELEASE:repackage (default) on project my-project: Execution default o
f goal org.springframework.boot:spring-boot-maven-plugin:2.0.6.RELEASE:repackage
failed: Unable to rename '...\target\my-project-0.1-SNAPSHOT.jar' to '...\target\my-project-0.1-SNAPSHOT.jar.original' -> [Help 1]

pom.xml

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <version>2.0.6.RELEASE</version>
    <configuration>
        <fork>true</fork>
        <mainClass>...Application</mainClass>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>repackage</goal>
            </goals>
        </execution>
    </executions>
</plugin>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答 默认 最新

  • 已采纳
    xie8409959 Miven666 2019-02-27 16:32

    图片说明
    去掉红框的,在执行;
    不想去掉,执行右上第一个package

    点赞 评论 复制链接分享
  • weixin_43946484 简某某 2019-02-28 11:31

    清理,重新下载,是否有插件没有下载完

    点赞 评论 复制链接分享

相关推荐