简体   繁体   English

应用程序服务器中不存在最后的代码更改

[英]last code changes not present in application server


Under Eclipse (with Maven and GWT), i have 4 projects. 在Eclipse(带有Maven和GWT)下,我有4个项目。

I made modifications in my Java code source. 我在Java代码源中进行了修改。 To put my modifications in the application server (a Jonas server), 要将我的修改放入应用程序服务器(Jonas服务器)中,
i made a clean / build automatically of all projects, 我自动清理/构建了所有项目,
then a GWT compile of the project who contains the entry point. 然后由GWT编译包含入口点的项目。
and finally an export WAR of this project who contains the entry point. 最后是包含入口点的该项目的导出WAR。
When i put this WAR on the application server (Jonas), and stop and restart of the server, 当我将此WAR放在应用程序服务器(乔纳斯)上,并停止并重新启动服务器时,
my last changes are not present in the server !!! 我的上一次更改不在服务器中!

However, when i run my GWT application in local (localhost:8080), my last changes are present. 但是,当我在本地(localhost:8080)运行我的GWT应用程序时,出现了我的最后更改。

Do you have met such a situation ? 你遇到过这种情况吗? What can explain it ? 有什么可以解释的呢?
Thanks 谢谢

If you made modifications to a sub-project, but did not increment the version number, it might be possible that you continue to use an outdated version. 如果您对子项目进行了修改,但没有增加版本号,则可能会继续使用过时的版本。

It depends on what you mean by "i made a clean / build automatically of all projects, " 这取决于您的意思,即“我自动清理/构建了所有项目,”

I recommand you update the version number of projects when upgrading, and/or build with -U argument (mvn clean install -U) 我建议您在升级时更新项目的版本号,和/或使用-U参数进行构建(mvn clean install -U)

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

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