【发布时间】:2012-03-12 05:34:01
【问题描述】:
我有一个 NetBeans 6.9.1 项目,其中存储在 netbeans 项目目录选项中的库已选中。我的项目中还安装了一些 ant 构建脚本。
现在,当我运行任何 ant 目标(包括最简单的目标,如 clean),或者当我从 IDE 构建项目时,我会在输出窗口中的构建过程结束时获得以下输出。
我不知道如何摆脱这些错误。我曾尝试重新创建该项目,因为我在网上阅读了 netbeans 6.5.1。损坏 build-impl.xml 文件时遇到问题,但这并没有解决我的问题。重要的是构建确实成功了,但是在构建结束时看不到这些错误真的很好,并且每次都必须在输出窗口中向上滚动以确保构建工作(或者如果我搞砸了就会失败)文件或其他东西)。
提前感谢您的帮助。
输出:
BUILD SUCCESSFUL (total time: 1 second)
Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRepository) for type mavenrepository
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.Ejbc) for type ejbc
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLStop) for type wlstop
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for type wlrun
Could not load a dependent class (javax/media/jai/PlanarImage) for type image
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.DDCreator) for type ddcreator
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin) for type stcheckin
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout) for type stcheckout
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel) for type stlabel
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamList) for type stlist
Could not load class (org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut) for type starteam
Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRepository) for type mavenrepository
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.Ejbc) for type ejbc
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLStop) for type wlstop
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for type wlrun
Could not load a dependent class (javax/media/jai/PlanarImage) for type image
Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.DDCreator) for type ddcreator
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin) for type stcheckin
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout) for type stcheckout
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel) for type stlabel
Could not load class (org.apache.tools.ant.taskdefs.optional.starteam.StarTeamList) for type stlist
Could not load class (org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut) for type starteam
【问题讨论】:
-
嗯,有趣 - 我不是 Netbeans 用户,但看起来 Netbeans 在幕后使用 IVY 来解决依赖关系。您是否可以在 Netbeans 中访问互联网(例如,您是否启用了代理)?
-
是的,NetBeans 可以访问 Internet,但我不确定为什么需要这样做。我最近才开始注意到这一点,大约在我让我的项目将库存储在项目文件夹中的时候。此外,我尝试安装所有 netbeans 拥有的库(Ant 等),但并没有让消息消失。