Redhat官方手顺 貌似已经404了,搬运地址

我的Eclipse是Luna,每次进入Eclipse Market去装 http://marketplace.eclipse.org/content/jboss-tools-luna 里面 Openshift tools的时候,New里面并不能出现这类工程。。

话说下载Jboss系列插件的时候,貌似openshift只有18M,而forge是它的好几倍,在公司吓得我直接点方块了。

后来Stackoverflow上有人给了个Install Software方式的地址 http://download.jboss.org/jbosstools/updates/development/luna/ 只是安装方式不同,下下来都一样的,装完还是看不到。。

到底要怎么做才能出现New Openshift Application呢?

搜了很多文章提到 "解决eclipse装配插件后插件不显示的一些办法"

只要启动eclipse的时候带上-clean清理一遍重新加载插件。

可惜只有windows是这么玩儿的,

用Mac终端启动chrome带参数那种方法又不灵!

有问题还得找Stackoverflow

If you CD to the eclipse installation directory using terminal,
then you will see there is
a directory called eclipse.app.
CD to Eclipse.app\Contents\MacOS under that directory
there should be an executable called eclipse.
I believe you can launch eclipse
from the commandline by executing the eclipse executable
with the -clean argument, as
below: ./eclipse -clean

药到病除。

后来我尝试了用eclipse的server选项卡中右键进行Publish,出错提示我ssh没有正确设置。

开始有点担心是不是不付费不提供ssh的提交啊(不提供的是ssl),但是console页面右下角提示了一个ssh的命令行,敲入中端就可以建立一个ssh链接。

其实eclipse的preferences里面有ssh设定。

要看清楚的一点是这个Management的主面板是一个黏贴区域,不是用来显示所有Key列表的,所以什么也没有是正常的。。

但使用Load Existing Key...加载旧的用于git的key,apply之后也没有效果。

因为虽然以前用git就创建过ssh,也都是rsa,但用这个create出来的ssh除了前面一段相同,fingerprint 其实是不同的。我是重新用eclipse新建一个openshift工程的时候才发现的,虽然新建失败了,但由于在新建的向导中创建了符合规格的ssh以后,再去Publish旧工程就成功了,界面类似svn。

另外可以右击项目,访问OpenShift > Configure Markers来激活启用Hot Deploy。这会在.openshift/markers文件夹下创建一个hot_deploy空文件。

如果禁止build maven工程,最新的更改就不会显示到站点上了。

有个图片路径的坑。之前我的images都是和index.html平级的。在maven工程中webapp下面直接放images文件夹是不会被正确build的。

maven有规定的几个资源文件夹 

src/main/java

Application/Library sources

src/main/resources

Application/Library resources

src/main/filters

Resource filter files

src/main/assembly

Assembly descriptors

src/main/config

Configuration files

src/main/webapps

Web application sources

src/test/java

Test sources

src/test/resources

Test resources

src/test/filters

Test resource filter files

src/site

Site

LICENSE.txt

Project's license

README.txt

Project's readme

既然我已经把文件都放在webapp下面,就在webapp下也建一个resources文件夹,把images拖进去,引用路径为“resources/images/..."

图片出来了!

posted on 2015-12-04 16:49  meeming  阅读(234)  评论(0编辑  收藏  举报



Fork me on GitHub