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

时间:2017-08-28 09:41:34

标签: java maven jhipster

我使用jHipster生成项目,当我使用此命令" mvn -Pprod package"在终端中构建项目时,我收到有关node和yarn的错误。明天我必须在我的演讲中展示这个项目。

这是错误消息:

[错误]无法在项目myapp上执行目标com.github.eirslett:frontend-maven-plugin:1.4:install-node-and-yarn(安装节点和纱线):无法提取Yarn存档:无法extract archive:' /home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/yarn-0.27.5./yarn-v0.27.5.tar.gz' ;: EOFException - > [帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [ERROR]使用-X开关重新运行Maven以启用完整的调试日志记录。 [错误] [错误]有关错误和可能解决方案的更多信息,请阅读以下文章: [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

请有人帮我解决这个问题。

谢谢。

1 个答案:

答案 0 :(得分:2)

这是由#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/