[英]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.