javawhy
javawhy
2019-02-27 14:31

springboot maven打jar包异常

5
  • java
  • maven
  • jar
  • intellij-idea

[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条回答