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>


紫衣仙女
浏览 4466回答 4
4回答

weibo_蓝石头蓝_0

my-project-0.1-SNAPSHOT.jar 文件被其他进程占用了。你试着删一下看看哪个程序占用,结束那个程序进程就行了

智慧大石

清理,重新下载,是否有插件没有下载完
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java