编译过程中 thingsboard server ui 出现问题 · 物联网平台-威尼斯人最新

18810003053 · may 07, 2022 · last by replied at october 14, 2022 · 519 hits
[info] installing yarn version v1.22.17
[info] unpacking d:\m2\com\github\eirslett\yarn\1.22.17\yarn-1.22.17.tar.gz into d:\ideaprojects\iot\thingsboard\ui-ngx\target\node\yarn
[info] installed yarn locally.
[info] 
[info] --- frontend-maven-plugin:1.12.0:yarn (yarn install) @ ui-ngx ---
[info] running 'yarn install' in d:\ideaprojects\iot\thingsboard\ui-ngx
[info] �ܾ����ʡ�
[info] ------------------------------------------------------------------------
[info] reactor summary for thingsboard 3.4.0-snapshot:
[info] 
[info] thingsboard ........................................ success [  0.029 s]
[info] netty mqtt client .................................. success [  0.950 s]
[info] thingsboard server commons ......................... success [  0.001 s]
[info] thingsboard server common data ..................... success [  0.969 s]
[info] thingsboard server common utils .................... success [  0.136 s]
[info] thingsboard server common messages ................. success [  4.363 s]
[info] thingsboard actor system ........................... success [  1.148 s]
[info] thingsboard server stats ........................... success [  0.143 s]
[info] thingsboard server common cluster api .............. success [ 11.795 s]
[info] thingsboard server queue components ................ success [  8.125 s]
[info] thingsboard server common cache .................... success [  0.297 s]
[info] thingsboard server commons ......................... success [  0.002 s]
[info] thingsboard server common transport components ..... success [  7.099 s]
[info] thingsboard mqtt transport common .................. success [  2.900 s]
[info] thingsboard http transport common .................. success [  2.187 s]
[info] thingsboard coap server ............................ success [  1.931 s]
[info] thingsboard coap transport common .................. success [  4.205 s]
[info] thingsboard lwm2m transport common ................. success [  5.496 s]
[info] thingsboard snmp transport common .................. success [  2.173 s]
[info] thingsboard server common dao api .................. success [  2.160 s]
[info] thingsboard server remote edge wrapper ............. success [  8.309 s]
[info] thingsboard extensions ............................. success [  0.003 s]
[info] thingsboard rule engine api ........................ success [  1.690 s]
[info] thingsboard server dao layer ....................... success [  9.276 s]
[info] thingsboard rule engine components ................. success [  7.037 s]
[info] thingsboard server transport modules ............... success [  0.002 s]
[info] thingsboard http transport service ................. success [  2.328 s]
[info] thingsboard mqtt transport service ................. success [  1.449 s]
[info] thingsboard coap transport service ................. success [  1.536 s]
[info] thingsboard lwm2m transport service ................ success [  1.488 s]
[info] thingsboard snmp transport service ................. success [  1.455 s]
[info] thingsboard server ui .............................. failure [ 14.538 s]
[info] thingsboard server tools ........................... skipped
[info] thingsboard rest client ............................ skipped
[info] thingsboard server application ..................... skipped
[info] thingsboard microservices .......................... skipped
[info] thingsboard docker images .......................... skipped
[info] thingsboard javascript executor microservice ....... skipped
[info] thingsboard web ui microservice .................... skipped
[info] thingsboard node microservice ...................... skipped
[info] thingsboard transport microservices ................ skipped
[info] thingsboard mqtt transport microservice ............ skipped
[info] thingsboard http transport microservice ............ skipped
[info] thingsboard coap transport microservice ............ skipped
[info] thingsboard lwm2m transport microservice ........... skipped
[info] thingsboard snmp transport microservice ............ skipped
[info] ------------------------------------------------------------------------
[info] build failure
[info] ------------------------------------------------------------------------
[info] total time:  01:46 min
[info] finished at: 2022-05-07t20:19:19 08:00
[info] ------------------------------------------------------------------------
[error] failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:yarn (yarn install) on project ui-ngx: failed to run task: 'yarninstall' failed. org.apache.commons.exec.executeexception: process exited with an error: 1 (exit value: 1) -> [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/mojofailureexception
[error] 
[error] after correcting the problems, you can resume the build with the command
[error]   mvn  -rf :ui-ngx
请问这个是什么原因啊?
1floor has deleted

经个人排查是由于在 ui-ngx /pom.xml 中使用了 frontend-maven-plugin 插件,它会下载 nodejs 并安装,然后通过下载的 nodejs 编译 ui-ngx 项目,而每次下载的 nodejs 版本都有问题所有总是出问题 解决办法 这里可更换为使用 exec-maven-plugin 这个插件,exec-maven-plugin 它可用可用使用本地 nodejs 环境进行编译

对 回复

你好,请问下换成 exec-maven-plugin 有哪些配置呀,方便给下代码吗。

需要 sign in 后方可回复, 如果你还没有账号请点击这里 sign up
网站地图