即使构建成功,NetBeans 6.9.1构建和ant目标也会提供错误的错误消息

时间:2010-11-05 10:39:26

标签: java netbeans ant build

我有一个NetBeans 6.9.1项目,其中选中了存储在netbeans项目目录选项中的库。我的项目中还安装了一些ant构建脚本。

现在当我运行任何ant目标(包括最简单的ant目标)时,或者当我从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

1 个答案:

答案 0 :(得分:1)

如果部署,请忽略这些消息或将ant输出级别更改为正常。

如果没有检查GlassFish标签上的输出。