简体   繁体   English

刷新Google App Engine中的WEB-INF / lib(使用Eclipse)

[英]Refreshing WEB-INF/lib in Google App Engine (with Eclipse)

I've created a new Google App Engine project within Eclipse. 我在Eclipse中创建了一个新的Google App Engine项目。 I copied several JARs that I need for my application into the WEB-INF/lib directory, and add them to the build path. 我将应用程序所需的几个JAR复制到WEB-INF / lib目录中,并将它们添加到构建路径中。 I make some random calls to these JARs from within the handler, deploy, and everything works fine. 我从处理程序内部对这些JAR进行了一些随机调用,进行了部署,并且一切正常。

However, if I then change one of the JARs outside the project, and copy the new version to WEB-INF/lib (with the same name) and re-deploy, it doesn't seem to be sending the new JAR; 但是,如果我随后在项目外更改其中一个JAR,然后将新版本复制到WEB-INF / lib(具有相同的名称)并重新部署,则它似乎并没有发送新的JAR。 everything is still linking to the old one even though it's not even in my WEB-INF/lib anymore. 即使不再存在于我的WEB-INF / lib中,所有内容仍与旧版本链接。 I'm guessing it's being cached by the server or Eclipse is not even realizing something has changed in order to upload the new version. 我猜它正在被服务器缓存,或者Eclipse甚至都没有意识到为了上传新版本而发生了什么变化。

If I just create a new project with the new JAR, everything is fine again (until I have to make another change...) but of course I don't want to have to create a new project for every change to a dependency I make. 如果我只是使用新的JAR创建一个新项目,那么一切都会好起来(直到我必须进行另一次更改...),但是我当然不想为我对依赖项的每次更改都创建一个新项目。使。

My question is, how can I make GAE re-upload all the JARs I have from within Eclipse? 我的问题是,如何使GAE重新上载我在Eclipse中拥有的所有JAR?

Thanks in advance, guys :) -Adrian 预先感谢,伙计们:)-艾德里安

I seem to have found a workaround to my problem -- bumping the version number seems to tell Eclipse to repackage the WAR file and resend everything. 我似乎已经找到解决问题的方法-修改版本号似乎告诉Eclipse重新打包WAR文件并重新发送所有内容。

However, it's still not an ideal solution, so I'll be glad to hear any better ways from you guys :) 但是,它仍然不是理想的解决方案,因此,很高兴听到你们有更好的方法:)

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

相关问题 Google App Engine WEB-INF和META-INF - Google App Engine WEB-INF and META-INF App Engine:WEB-INF / lib中的jar,但仍会收到java.lang.ClassNotFoundException - App Engine: jar in WEB-INF/lib but still getting java.lang.ClassNotFoundException GWT / GPE / App Engine:如何(智能地)找到丢失的.jar,并将其复制到/ WEB-INF / lib? - GWT/GPE/App Engine: How to (intelligently) find missing .jars and have them copied to /WEB-INF/lib? Maven,GWT,Google Eclipse插件,在依赖项项目处于战争状态时无法将jar复制到WEB-INF / lib - Maven, GWT, Google Eclipse plugin, can not copy jar to WEB-INF/lib when dependency project is war Maven依赖项不会复制到eclipse中的WEB-INF / lib - Maven dependencies are not copied to WEB-INF/lib in eclipse 使用 Eclipse 在 JBoss 上部署时 WEB-INF/lib 文件夹消失 - WEB-INF/lib folder disappears when deploying on JBoss with Eclipse Maven Google App Engine Guice类未找到异常(尽管WEB-INF中存在jar) - Maven Google App Engine Guice Class Not Found Exception (although jar present in WEB-INF) 定期更新WEB-INF中的文件,而无需重新启动应用程序-Google App Engine - Periodically update a file in WEB-INF without restarting application - Google App Engine / WEB-INF / classes vs / WEB-INF / lib - /WEB-INF/classes vs /WEB-INF/lib JBOSS订购WEB-INF / lib的内容 - JBOSS ordering of contents of WEB-INF/lib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM