在OpenShift中更新pom.xml [英] Updating pom.xml in OpenShift

查看:101
本文介绍了在OpenShift中更新pom.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在NetBeans上本地开发了一个OpenShift应用程序,并将代码推送到服务器,其中包括pom.xml的更改.现在我的更改没有反映出来.我从 Openshift了解到:Openshift:修改代码和Git推送之后.更改不会显示,表明pom更改应手动进行,而不是替换整个文件. 有办法还原吗?

I have developed an OpenShift application locally on NetBeans and have pushed the code to server including pom.xml changes. Now my changes are not reflecting. I understand from Openshift: After modifying code and Git push. Changes dont show that pom changes should be made manually rather than replacing the entire file. Is there a way to revert this?

推荐答案

如果您想看一下 JBoss EWS 盒带随附的pom.xml模板,可以找到它此处.

If you'd like to take a look at the pom.xml template that comes witht the JBoss EWS cartridge, you can find it here.

如果您只想将更改恢复到存储库中的pom.xml文件,则可以使用git来完成(git checkout <commit> path/to/pom.xml然后根据需要对其进行修改,添加,提交和推送更改).

If you want just to revert your changes to the pom.xml file in your repo, you can use git to do that (git checkout <commit> path/to/pom.xml then modify it as you need, add, commit and push the change).

这篇关于在OpenShift中更新pom.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆