编译失败,报以下错误:

Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048) -> [Help 1]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Thingsboard 3.0.0-SNAPSHOT:
[INFO]
[INFO] Thingsboard ........................................ SUCCESS [  0.878 s]
[INFO] Netty MQTT Client .................................. SUCCESS [  1.991 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [  0.080 s]
[INFO] Thingsboard Server Common Data ..................... SUCCESS [  5.836 s]
[INFO] Thingsboard Server Common Utils .................... SUCCESS [  0.247 s]
[INFO] Thingsboard Server Common Messages ................. SUCCESS [  9.960 s]
[INFO] Thingsboard Server Queue components ................ SUCCESS [  0.542 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [  0.027 s]
[INFO] Thingsboard Server Common Transport components ..... SUCCESS [ 10.231 s]
[INFO] Thingsboard MQTT Transport Common .................. SUCCESS [  0.867 s]
[INFO] Thingsboard HTTP Transport Common .................. SUCCESS [  0.491 s]
[INFO] Thingsboard CoAP Transport Common .................. SUCCESS [  0.956 s]
[INFO] Thingsboard Server Common DAO API .................. SUCCESS [  1.330 s]
[INFO] Thingsboard Extensions ............................. SUCCESS [  0.041 s]
[INFO] Thingsboard Rule Engine API ........................ SUCCESS [  1.035 s]
[INFO] Thingsboard Server DAO Layer ....................... SUCCESS [ 59.488 s]
[INFO] Thingsboard Rule Engine Components ................. SUCCESS [  5.554 s]
[INFO] Thingsboard Server Transport Modules ............... SUCCESS [  0.023 s]
[INFO] Thingsboard HTTP Transport Service ................. SUCCESS [  9.798 s]
[INFO] Thingsboard MQTT Transport Service ................. SUCCESS [  5.203 s]
[INFO] Thingsboard CoAP Transport Service ................. SUCCESS [  4.718 s]
[INFO] ThingsBoard Server UI .............................. FAILURE [11:51 min]
[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 Black Box Tests ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13:51 min
[INFO] Finished at: 2020-03-05T20:49:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048)
-> [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

解决方案:

检查是否使用了淘宝镜像源,如果是可以尝试切换回官方镜像源,然后执行一下步骤:

1、删除ui目录下面的node_modules文件夹

cache clean --force
npm update
mvn clean install -DskipTests

欢迎加入ThingsBoard技术交流群

群号:69998183

ThingsKit物联网平台
基于ThingsBoard二次开发的物联网平台推荐:ThingsKit物联网平台,开箱即用的物联网低代码平台,提供N+1+N的产品服务体系,帮助企业快速搭建稳定可靠的物联网系统平台,为企业节省大量时间及人力成本。
www.thingskit.com

thingsboard编译失败 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm 编译失败,报以下错误:Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -40
更多知识,请移步我的小破站:http://hellofriend.top idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,需要将 mybatis-generator 所在的 放在与 同级别的目录下,修改配置如下: 这时就会自动下载mybatis-generator插件,
< groupId>org.fenixedu</ groupId> < artifactId>frontend-maven-plugin</ artifactId> < version>0.0.1-SNAPSHOT</ version> < configuration> < path>CONTEXT_PATH</ path> < port>PORT</ port>
spring-petclinic-master运行mvn install报错:Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.19:validate (default) on project spring-petclinic: Formatting violations found in the following files: 如下图所示: D:\eclipse-workspace\190603\spring-petclinic-master>mvn install [INFO]
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project js-executor: Failed to run task: 'npm install' failed. [ERROR] Failed to execute goal com.github.eirs...
编译错误代码: [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "F:\thingsboard\ui-ngx\target\node\node.exe" (in d
[INFO] Reactor Summary for demo 0.0.1-SNAPSHOT: [INFO] [INFO] demo ……………………………………….. FAILURE [18:18 min] [INFO] admin-service ……………………………….. SKIPPED [INFO] user-service ………………………………… SKIPPED [INFO] myweb ………………………………………. SKIPPED [INFO] ———————————————————————— [INFO]
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project tdpco-web-app-ui: Could not download Node.js: Got error code 404 from the server. -> [Help 1] 解决方案: 修改com.github.eirslett插件版本..
这个错误通常出现在使用 Maven 构建项目时,使用了 com.github.eirslett:frontend-maven-plugin:1.1 插件,并且在执行插件的过程中出现了问题。具体原因可能是插件配置不当,也可能是插件本身存在漏洞或不稳定。 为了解决这个问题,可以参考以下步骤: 1. 检查 Maven 的配置文件,确保插件的版本和配置正确。 2. 尝试更新插件,可以使用以下命令更新: mvn com.github.eirslett:frontend-maven-plugin:1.7.6:npm 3. 如果还是无法解决问题,可以考虑查看插件的文档和 Github 仓库,了解是否存在类似问题的解决方案或者是否有新的版本可以使用。 4. 如果以上方法都无效,可以考虑使用其他相似的 Maven 插件来完成相同的任务。 总之,出现这个错误时需要首先定位问题,找到具体原因,然后再采取相应的解决方案。具体步骤可能因项目和环境的不同而有所不同,需要具体问题具体分析。
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project js 10938 thingsboard编译失败 Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm