RocketMQ可视化工具 打包遇到的yarn intall 问题
2023-12-13 19:52:42
    		RocketMQ可视化工具
1.github上下载
下载地址 https://github.com/apache/rocketmq-externals
 现下载地址 https://github.com/apache/rocketmq-dashboard
 简单解释一下,因为比较好用所以特意独立出来了
2.修改参数

 
3.运行
网页 localhost:8887  刚才设置的端口号

4.打包
先clean清除target,再打包
 
5.出错

 关于原因和解决方案  参考 https://blog.csdn.net/xiaoyiny/article/details/132134052
6.解决
注释掉这一坨
 <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <version>1.11.3</version>
                <configuration>
                    <workingDirectory>frontend</workingDirectory>
                    <installDirectory>target</installDirectory>
                </configuration>
                <executions>
                    <execution>
                        <id>install node and yarn</id>
                        <goals>
                            <goal>install-node-and-yarn</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>v16.2.0</nodeVersion>
                            <yarnVersion>v1.22.10</yarnVersion>
                        </configuration>
                    </execution>
                    <execution>
                        <id>yarn install</id>
                        <goals>
                            <goal>yarn</goal>
                        </goals>
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>yarn build</id>
                        <goals>
                            <goal>yarn</goal>
                        </goals>
                        <configuration>
                            <arguments>build</arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
7.重试
再次报错
 
8.再解决

9.很奇怪运行没错,但是测试错啦

10.不想深究,直接跳过测试
 mvn install -Dmaven.test.skip=true

打包成功,直接运行

11.展示成功

    			文章来源:https://blog.csdn.net/weixin_63558979/article/details/134955127
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
    	本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!