【问题标题】:How to run spring boot repackage goal如何运行 spring boot 重新打包目标
【发布时间】:2021-04-27 09:19:42
【问题描述】:

我只想运行来自spring-boot-maven-plugin 插件的重新打包目标。

我试过了

mvn spring-boot-maven-plugin:2.2.0.RELEASE:repackage

但我得到了:

Plugin not found in any plugin repository

更新

我也试过

mvn org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage

我得到: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage failed: Source file must be provided

这是完整的错误日志:

[ERROR] 未能执行目标 org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage 项目 MyServer 上的 (default-cli):执行目标的 default-cli org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage 失败:必须提供源文件 -> [帮助 1] org.apache.maven.lifecycle.LifecycleExecutionException: 失败 执行目标 org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage 项目 MyServer 上的 (default-cli):执行目标的 default-cli org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:repackage 失败:必须提供源文件

【问题讨论】:

    标签: spring-boot maven


    【解决方案1】:
    猜你喜欢
    • 2020-06-09
    • 2019-12-02
    • 2015-08-01
    • 2016-12-18
    • 2020-07-08
    • 2017-05-31
    • 1970-01-01
    • 1970-01-01
    • 2017-11-17
    相关资源
    最近更新 更多