在JAVA环境中,部署云引擎出现错误,错误信息如下

部署失败:The command '/bin/sh -c mvn package && mv $(ls /home/leanengine/app/target/*.war) /var/lib/jetty/webapps/ROOT.war && mvn clean' returned a non-zero code: 1:
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.asongshu:sharebook:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 107, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sharebook 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/cn/leancloud/leancloud-common/maven-metadata.xml
817/817 B   
            
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/cn/leancloud/leancloud-common/maven-metadata.xml (817 B at 4.8 KB/sec)
[WARNING] The POM for cn.leancloud:leancloud-common:jar:0.1.6-SNAPSHOT is missing, no dependency information available
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/cn/leancloud/leancloud-common/0.1.8/leancloud-common-0.1.8.pom
4/7 KB      
7/7 KB   
         
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/cn/leancloud/leancloud-common/0.1.8/leancloud-common-0.1.8.pom (7 KB at 283.2 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/cn/leancloud/leancloud-common/0.1.8/leancloud-common-0.1.8.jar
         
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

提示,我在本地运行时也出现过这个错误,后来我把~/.m2/repository/cn/leancloud下的文件删除掉,执行mvn package命令后,就可以了。

另外使用官方提供的Demo工程部署也是失败的,错误信息如下

  部署失败:The command '/bin/sh -c chown leanengine:leanengine . &&    su leanengine -c 'mvn dependency:tree'' returned a non-zero code: 1:
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for cn.leancloud.demo:java-war-getting-started:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 74, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-maven-plugin/9.3.10.v20160621/jetty-maven-plugin-9.3.10.v20160621.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-maven-plugin/9.3.10.v20160621/jetty-maven-plugin-9.3.10.v20160621.pom (6 KB at 53.0 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-project/9.3.10.v20160621/jetty-project-9.3.10.v20160621.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-project/9.3.10.v20160621/jetty-project-9.3.10.v20160621.pom (35 KB at 1507.7 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-parent/25/jetty-parent-25.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-parent/25/jetty-parent-25.pom (22 KB at 1125.3 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-maven-plugin/9.3.10.v20160621/jetty-maven-plugin-9.3.10.v20160621.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/eclipse/jetty/jetty-maven-plugin/9.3.10.v20160621/jetty-maven-plugin-9.3.10.v20160621.jar (100 KB at 3815.4 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (4 KB at 212.6 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (25 KB at 1202.8 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom (7 KB at 328.0 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.jar (27 KB at 1462.2 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom (6 KB at 288.5 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.jar (27 KB at 1310.1 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom (21 KB at 1129.2 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.jar (122 KB at 5060.1 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom (5 KB at 256.7 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom (12 KB at 717.0 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar (24 KB at 1278.9 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom (15 KB at 822.4 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom (13 KB at 743.9 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/maven-parent/15/maven-parent-15.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/maven-parent/15/maven-parent-15.pom (24 KB at 1116.2 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar (204 KB at 4743.5 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
Downloaded: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom (12 KB at 658.0 KB/sec)
Downloading: http://mvn.leancloud.cn/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar
 ✓ /150 KB   
 ✓ 删除临时文件
部署失败

你好,库在同步的过程中,有些问题。我们正在想办法优化。

你好,是因为我们的 mvn.leancloud.cn 的 Maven 仓库在同步公共仓库时撞墙了,我们做了处理,现在可以了。

好的,已经OK了。

nodejs 也是这样 麻烦查下 谢谢

升级新版本解决了