服务构建器在构建时无法删除其 jar 文件
我正在 Eclipse Helios 下开发 Liferay portlet 项目。项目与颠覆相关。
当我在 Liferay 菜单中运行“构建服务”子菜单时,在构建的最后阶段出现错误,说
build-common-plugin.xml:208: Unable to delete file ...-portlet-service.jar
我怀疑 subversion 正在锁定该文件。在 Eclipse 运行之前,我也无法从文件管理器中删除该文件。仅当我退出 Eclipse 并手动删除此 jar 时,我才能构建服务。
如何要求subversion不锁定文件?我正在使用 Subclipse 1.8.2。
I am developing a Liferay portlet project under Eclipse Helios. A project is connected to subversion.
When I run "build services" submenu in Liferay menu, I get error at last stages of building, saying
build-common-plugin.xml:208: Unable to delete file ...-portlet-service.jar
I suspect subversion is locking this file. I can't delete this file from file manager too, until Eclipse is running. I can build services only if I exit Eclipse and delete this jar manually.
How to ask subversion not lock files? I am using Subclipse 1.8.2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Subversion 不会对文件设置文件系统锁定,但如果您使用的是 Windows,则任何文件在读取或执行时都会被锁定。当我看到无法删除 JAR 文件时,我的第一直觉是认为它正在被正在运行的 Java 应用程序使用。您是否在仍在运行的 Web 容器中运行您的 Web 应用程序?
Subversion does not put file system locks on files, but if you are on Windows any file will be locked while it is being read or executed. When I see a JAR file unable to be deleted, my first instinct is to think it is in use by a running Java application. Are you running your web app in a web container that is still running?