简体   繁体   English

Jhipster项目生产服务器上的错误构建

[英]Error Build on Production Server of Jhipster Project

I generate a project use jHipster, when I build the project in terminal with this command "mvn -Pprod package", I get error about node and yarn. 我使用jHipster生成一个项目,当我使用“ mvn -Pprod软件包”命令在终端中构建项目时,出现关于节点和yarn的错误。 Tomorrow I must show this project to my lecture. 明天我必须在我的演讲中展示这个项目。

This is error messages : 这是错误消息:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn (install node and yarn) on project myapp: Could not extract the Yarn archive: Could not extract archive: '/home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/yarn-0.27.5./yarn-v0.27.5.tar.gz': EOFException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [错误]无法在项目myapp上执行目标com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn(安装节点和yarn):无法提取Yarn归档文件:无法提取归档文件: '/home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/yarn-0.27.5./yarn-v0.27.5.tar.gz':EOFException-> [帮助1] [错误] [ERROR]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。 [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Please anyone help me solve this problem. 请任何人帮我解决这个问题。

Thank you. 谢谢。

这是通过#1评论解决的:

Looks like your archive got corrupted. Delete this folder and you should be ok: /home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM