<分区>
我已经安装了
- Java 1.7
- eclipse 朱诺号
- 已从 Eclipse Market 安装 - Maven Integration for Eclipse WTP(又名 m2e-wtp)、m2e-apt、Spring IDE、The Spring Tool Suite™ (STS)
- 已将
M2_HOME
定义为安装 Maven 的目录。 PATH 更新为%M2_HOME%/bin
我正在使用 Windows XP。
我能够创建 Maven 项目,但是在尝试添加依赖项时(选择 pom.xml
- Dependencies - Add)artifactId
的“Enter groupId , artifactId or sha1 prefix or pattern
"没有被输入。假设我输入“springframework”,它只会反射(reflect)本地安装的 jar,不会在互联网上搜索。
此外,如果我检查 Maven 存储库(通过 Windows 选择 - 显示 View - 其他 - Maven - Maven 存储库),全局存储库 - 中央(http://repo.maven.apache.org/maven2)中没有显示任何内容。
以防万一,如果我手动将所需的 artifactID
放入 pom.xml
,然后更新 maven,它会下载所需的 jar。
我在没有任何代理的家用电脑上工作,并在本地 m2 设置中进行了以下设置 (C:\Documents and Settings\Sandy\.m2\Settings.xml
)
请问我需要做什么设置才能使用添加依赖项选项添加输入的 Artifact ?
提前致谢