2016-06-30 29 views
0

我已經從SVN更新我的項目,並在我的Eclipse IDE中刷新項目。當我試圖運行測試用例時,它拋出以下錯誤。歸檔:/common-entity/target/common-entity-1.0.0-SNAPSHOT.jar類路徑引用,不存在

The archive: /cu-common-entity-generated/target/common-entity-1.0.0-SNAPSHOT.jar which is referenced by the classpath, does not exist. 

此前常見的實體-1.0.0-SNAPSHOT.jar可用,當我再次更新和跑行家,與其他快照新的JAR進行了更新。常見的實體-7.0.1-SNAPSHOT.jar

這是我的類路徑

<classpathentry kind="lib" path="/common-entity/target/common-entity-7.0.1-SNAPSHOT.jar" sourcepath="/cu-common-entity-generated"/> 

爲什麼仍參考1.0.0快照?這是Eclipse的問題嗎?

回答

0

檢查的JUnit 運行配置的類路徑(在運行>運行配置選擇運行配置,看看標籤類路徑),而不是項目的類路徑。看來JUnit運行配置不使用默認值,而是使用自己的類路徑。

+0

如何檢查? – Syed

+0

在_Run> Run Configurations_中選擇運行配置並查看選項卡_Classpath_ – howlger