NetBeans 自行导入库

发布于 2024-08-14 11:52:01 字数 384 浏览 3 评论 0原文

我在使用 NetBeans 项目时遇到问题。它影响着我团队中每个项目的每个人。每当打开一个项目时,甚至有时看似随机,NetBeans (6.1) 都会将两个库添加到编译时列表中。通常情况下,这不会被注意到,但包含这些库会导致 JBoss 在部署应用程序时毫不客气地自爆。

这是一个小小的不便(我们所要做的就是删除这些库),但我仍然感谢任何关于如何一劳永逸地停止这种情况的想法。

这是我的意思的图片(突出显示了两个有问题的库): 该死。 http://img192.imageshack.us/img192/1590/dammith.jpg

I am having a problem with NetBeans projects. It affects everyone on my team, for every project. Whenever a project is opened, or even sometimes seemingly at random, NetBeans (6.1) will add two libraries to the compile-time list. Normally this would go unnoticed, but the inclusion of these libraries causes JBoss to unceremoniously grenade itself when the apps are deployed.

It's a minor inconvenience (all we have to do is go remove the libraries), but I would still appreciate any ideas on how to get this to stop, once and for all.

Here's a picture of what I mean (the two offending libraries are highlighted):
Dammit. http://img192.imageshack.us/img192/1590/dammith.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一指流沙 2024-08-21 11:52:01

您是否正在采取任何措施来促进图书馆的纳入?例如,您实际上是否使用向导创建任何 REST Web 服务?如果您使用 REST/Jersey,这些看起来就像会包含在内的库。

其他你可以尝试的事情。

如果您根本不使用 REST/Jersey,只需从 NetBeans 中删除该模块,那么很可能将其库添加到项目中的任何代码或错误都将停止执行。

否则,只需单击并取消选中“打包”复选框即可,而不是从项目中删除库。然后,虽然这些库仍然是项目的一部分,但至少它们不会捆绑在您的工件中。理想情况下,这将阻止它们“回来”(因为它们仍然存在),而不是手榴弹 JBoss,因为它们不会包含在 WAR/EAR/JAR 中(如果这实际上是现有项目的问题)。

Are you doing anything to prompt inclusion of the libraries? For example, are you actually creating any REST web services, using a wizard? These look like libs that would be included if you were using REST/Jersey.

Other things you can try.

If you're not using REST/Jersey at all, simply remove the module from NetBeans, then, likely, whatever code or bug it has that's adding it's libraries to your project will stop executing.

Otherwise, rather than deleting the libraries from your project, simply click and uncheck the "Packaging" checkbox. Then, while the libraries will still be part of the project, at least they won't be bundled in your artifacts. This ideally would prevent them from "coming back" (since they're still there), and not grenade JBoss, because they won't be included in the WAR/EAR/JAR, if that's actually an issue for existing projects.

乄_柒ぐ汐 2024-08-21 11:52:01

你瞧,我发现有人在 Netbeans 的 bugzilla 网站上报告了完全相同的事情。

http://netbeans.org/bugzilla/show_bug.cgi?id=167726

由于它仍然处于打开状态(自 6.5 起),因此除了每次出现这些愚蠢的库时进入并删除之外,我可能无能为力。

哦,我可以告诉 Netbeans 社区我也遇到了同样的问题。感谢scope-creep 提出检查错误站点的建议。

我是 SOL,这很糟糕,但至少现在我知道这不是我能控制的(除非我想进入 NetBeans 源代码并自己修复它,不,谢谢)。

Lo and behold, I found someone who reported the exact same thing in Netbeans' bugzilla site.

http://netbeans.org/bugzilla/show_bug.cgi?id=167726

Since it's still open (since 6.5), there's probably nothing I can do except go in and delete every time those stupid libraries appear.

Oh, and I can tell the Netbeans community I'm having the same problem. Thanks to scope-creep for the suggestion to check the bug site.

It sucks that I'm S.O.L., but at least now I know that it's out of my hands (unless I want to go into the NetBeans source and fix it myself, no thank you).

孤千羽 2024-08-21 11:52:01

您最好的选择可能是升级。

Your best shot is probably upgrading.

暮倦 2024-08-21 11:52:01

如果您无法升级,我建议您清除主目录中的 .netbeans 目录,该目录是 Windows 7 之前的文档和设置、7 中的用户以及 Unix 和 Unix 中的 ~ 。

这将清除您的所有设置并将 Netbeans 重置为基本状态。

If you can't upgrade, I would recommend wiping out your .netbeans directory in your home directory, which is Document And Settings under Windows pre-7, users in 7 and ~ in Unix and Unix likes.

This will wipe out all your settings and reset Netbeans to a base state.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文