0

当我尝试在 pom.xml 中添加依赖项时,结果始终为零。比如,我输入“log4j”,选择依赖 UI 显示“log4j”的结果 (0) 如何从中央存储库中搜索结果?这是我的 settings.xml:

<?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>
4

1 回答 1

0

为什么不尽可能简单地使用:

<?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>
</settings>
于 2012-04-08T14:55:06.113 回答