简体   繁体   English

OpenShift Maven插件

[英]OpenShift maven plugin

I want to use openshift maven plugin to build the application in OpenShift. 我想使用openshift maven插件在OpenShift中构建应用程序。 I followed steps from : https://github.com/AhmedObaidi/openshift-maven-plugin 我遵循以下步骤操作: https : //github.com/AhmedObaidi/openshift-maven-plugin

but when I do "mvn openshift:deploy" it downloads the openshift plugin in .m2 repository but build fails with the following error: 但是当我执行“ mvn openshift:deploy”时,它将在.m2存储库中下载openshift插件,但是构建失败并出现以下错误:

[INFO] --- openshift-maven-plugin:1.0.1:deploy (default-cli) @ mavenplugintest --- [ERROR] [INFO] --- openshift-maven-plugin:1.0.1:deploy(default-cli)@ mavenplugintest --- [错误]

java.lang.NullPointerException java.lang.NullPointerException

at com.obteq.maven.plugin.openshift.Openshift.execute(Openshift.java:53) 在com.obteq.maven.plugin.openshift.Openshift.execute(Openshift.java:53)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

Can anybody please help me how to use openshift maven plugin. 谁能帮我如何使用openshift maven插件。 Additionally I saw one more plugin at : https://github.com/worldline/openshift-maven-plugin but not sure how to use this as there is no pluginrepository defined from where it can download the plugin. 另外,我在以下网址看到了另一个插件: https : //github.com/worldline/openshift-maven-plugin,但是由于没有可从其下载插件的定义的插件存储库,因此不确定如何使用它。

Thanks a lot in advance for any of your support. 在此先非常感谢您的支持。

Thanks Yashu 谢谢Yashu

You should post an issue on that project on github, since it is not an OpenShift maintained plugin. 您应该在github上的那个项目上发布问题,因为它不是OpenShift维护的插件。 The author would be the best one to answer your questions. 作者将是回答您问题的最佳人选。

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

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