2010-11-05 146 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選項卡上檢查輸出。