2010-11-05 37 views
0

我有一个NetBeans 6.9.1项目,其中存储在netbeans项目目录中的库选项已选中。我的项目中还安装了一些ant构建脚本。现在,当我运行任何蚂蚁目标(包括像clean这样最简单的目标),或者当我从IDE生成项目时,我会在输出窗口中的生成过程结束时获得以下输出。即使构建成功,NetBeans 6.9.1构建和ant目标也会产生错误的错误消息

我不知道如何摆脱这些错误。我尝试重新创建该项目,因为我在线阅读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 
+0

嗯,有趣 - 我不是Netbeans用户,但它看起来像Netbeans在后台使用IVY来解决依赖关系。你有没有在Netbeans访问互联网(例如,你是否启用了代理)? – 2010-11-05 11:19:28

+0

是的NetBeans可以访问互联网,但我不知道为什么这是必要的。我最近才开始注意到这一点,在我将项目存储在项目文件夹的时候。此外,我试图安装所有的图书馆netbeans了(蚂蚁等),它并没有使消息消失。 – Coder 2010-11-06 02:23:48

回答

1

如果部署忽略这些消息或更改ant输出电平正常。

如果不在GlassFish选项卡上检查输出。