【发布时间】: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