Eclipse Glassfish,不发布对所需项目的更改 [英] Eclipse Glassfish, not publishing changes to required projects

查看:53
本文介绍了Eclipse Glassfish,不发布对所需项目的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的设置如下:

我正在使用Eclipse版本:Juno Service Release 2内部版本号:20130225-0426和Glassfish 3.1.2.

I am using Eclipse Version: Juno Service Release 2 Build id: 20130225-0426 and Glassfish 3.1.2.

glassfish适配器的版本为5.0.1.201201241920

The glassfish adapter is version 5.0.1.201201241920

我有一个设置为需要jar maven项目的war maven项目.

I have war maven project that is set up to require a jar maven project.

我已将war部署程序集配置为包含jar项目.

I've configured the war Deployment assembly to include the jar project.

我已经关闭了自动发布到glassfish的功能(但是打开它并不能解决问题)

I've turned off automatic publishing to glassfish (but turning it on does not solve the problem)

问题:

如果我对jar项目中的类进行了更改,则服务器会将其状态更改为开始发布".表示它知道资源已更改,并且需要发布.但是,如果我在服务器上单击鼠标右键,然后单击发布",它不会弹出发布"对话框,表明它正在将资源复制到glassfish上,并且服务器不会重新部署添加的内容.然后,服务器指示它已同步,但是对所需的jar项目所做的更改不在服务器上.

If I make a change to a class in the jar project, the server will change its status to "started publish". Indicating that it knows resources have changed and a publish is required. However if I right click on the server and click publish it does not popup the publishing dialog box indicating that it is copying the resources over to glassfish and the server does not redeploy the add. The server then indicates it is synchronized but the changes made to the required jar project are not on the server.

如果我对war项目进行了更改,然后右键单击发布",则所有资源都将被复制到glassfish服务器.包括对必需的jar项目的更改.

If I make a change to the war project and right click publish, the all the resources are copied over to the glassfish server. Including the changes to the required jar project.

解决方案:

我认为这是一个错误,但是有人可以解决此问题.

I think this is a bug, but is someone has a configuration solution that would be solve this issue.

如果这是一个错误,我应该在哪里记录?Eclipse Bugzilla似乎没有关于glassfishs适配器错误的部分.

If this is a bug where do I log it? The eclipse bugzilla does not seem to have a section for glassfishs adapter bugs.

任何人都可以确认靛蓝是否存在此问题?我刚刚从HElios升级,但是如果需要的话,将降级到Indigo.

Can anyone confirm whether indigo has this problem? I have just upgraded from HElios but will downgrade to Indigo if need be.

推荐答案

我当前的解决方法是将glassfish设置为在构建中发布,然后在我要发布时全部运行项目clean.但这很烦人,因为在每次构建之后都部署了代码,并且大多数情况下这是不必要的.

My current work around is set glassfish to publish on build and then run project clean all when I want to publish. But this is annoying as the code is deployed after each build and most times this is unnecessary.

这篇关于Eclipse Glassfish,不发布对所需项目的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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