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

springboot maven打jar包异常

[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条回答 默认 最新

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

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

    评论
    解决 无用
    打赏 举报
查看更多回答(1条)

相关推荐 更多相似问题