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个回答

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

javawhy
javawhy 后来采用了https://blog.csdn.net/qq_37105358/article/details/79467401功打包
11 个月之前 回复
javawhy
javawhy 试了不行,报jar包依赖错误
11 个月之前 回复

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问