关于打包rocketmq-dashboard出现的错误

之前在打包rocketmq-dashboard出现了这样的一个错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project rocketmq-dashboard: An Ant BuildException has occured: D:\ProgramFiles\RocketMQ\rocketmq-dashboard\frontend\build does not exist.
[ERROR] around Ant part ...<copy todir="D:\ProgramFiles\RocketMQ\rocketmq-dashboard\target/classes/public">... @ 4:83 in D:\ProgramFiles\RocketMQ\rocketmq-dashboard\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

不知道你们能不能看出问题所在

我反正是百度了一下午,没找到解决方案

还是不多哔哔了

就是缺了文件夹,上解决方案吧

在  rocketmq-dashboard\frontend  建一个build文件夹
然后在  rocketmq-dashboard\target\  建一个classes文件夹,classes下再建一个public文件夹
最后

mvn install -Dmaven.test.skip=true

还有可能是yarn是问题

这个是CSDN博主「zihua2005」的原创片段,我懒得写了
原文链接:https://blog.csdn.net/zihua2005/article/details/121422362

由于在安装过程中mvn install过程中有些插件不能被执行,报错如下:
。。。。。 project rocketmq-dashboard: Failed to run task: ‘yarn install’ failed

错误是不能在本地运行yarn,不知什么原因,直接注释两个插件,.pom.xml
注释以下两个插件:
frontend-maven-plugin
maven-checkstyle-plugin


然后mvn install -Dmaven.test.skip=true

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yq3349

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值