关于打包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 ...... @ 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

你可能感兴趣的:(rocketmq)