0
當我嘗試在pom.xml中添加依賴項時,結果始終爲零。 喜歡,我輸入「log4j」,選擇依賴UI顯示'log4j'的結果(0) 如何從中央資源庫搜索結果? 這是我的settings.xml:爲什麼m2e添加依賴項始終爲零
<?xml version="1.0" encoding="UTF-8"?>
<settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>G:/Maven/repository</localRepository>
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<servers>
</servers>
<mirrors>
</mirrors>
<profiles>
</profiles>
</settings>
你有沒有配置爲下載Eclipse中的指數? – khmarbaise 2012-04-08 14:58:01
我在「global repositories」 - >「central(http://repo1.maven.org/maven2)」選項中選擇「maven repositories」查看重建索引。進度視圖顯示重建成功,但它不是有用,問題仍然存在。 – ZhenFang 2012-04-09 14:07:36
我的eclipse版本是4.1.2,m2e版本是1.0.2,maven版本是3.0.4 – ZhenFang 2012-04-09 14:14:36