Java 如何将Vaadin部署到OpenShift?

Java 如何将Vaadin部署到OpenShift?,java,openshift,vaadin,Java,Openshift,Vaadin,当我推到OpenShift(small gear)git存储库时,我一直遇到这个错误: remote: [INFO] auto discovered modules [your.company.MyAppWidgetset] remote: [WARNING] Failed to retrieve com.vaadin:vaadin-client-compiler based on project POM remote: [INFO] Using com.vaadin:vaadin-cli

当我推到OpenShift(small gear)git存储库时,我一直遇到这个错误:

 remote: [INFO] auto discovered modules [your.company.MyAppWidgetset]
 remote: [WARNING] Failed to retrieve com.vaadin:vaadin-client-compiler based on project POM
 remote: [INFO] Using com.vaadin:vaadin-client-compiler version 7.5.10
 remote: [ERROR] Dec 27, 2015 8:36:25 PM java.util.prefs.FileSystemPreferences$1 run
 remote: [ERROR] INFO: Created user preferences directory.
 remote: [INFO] Compiling module your.company.MyAppWidgetset
 Connection to vaadindemo-omio.rhcloud.com closed by remote host.
 fatal: The remote end hung up unexpectedly
我一直在尝试部署此Vaadin演示应用程序:

mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.5.10 -DgroupId=your.company -DartifactId=. -Dversion=1.0 -Dpackaging=war
我的研究中最相关的结果是:

  • 这项建议中的解决方案对我没有任何影响
  • 这与我目前面临的问题不同
我已通过SSH连接到服务器,并验证我的用户拥有app root中的所有目录,但app root本身属于root的目录除外,但我没有更改它的权限

不幸的是,我对Vaadin和OpenShift都没有足够的经验,无法继续

如何消除Maven构建错误

编辑:

要部署的命令实际上是一个git推送,其中origin是OpenShift中的repo,如其


完整和。

1)当您说deploy时,您正在运行的确切命令是什么(是maven deploy、war等)?2) 你能分享你完整的pom和日志吗?我能在你的日志文件中看到一些错误<代码>警告:无法锁定用户首选项。Unix错误代码2。表示maven/java进程无法在主目录中写入文件。不确定这是否是致命的,但我相信您应该一次修复一个,然后重试。