我使用以下站点创建了一个 Maven Web 项目。
http://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/
我已经执行了那里给出的所有步骤并执行了一个简单的 hello world 程序。现在,我必须将 spring 依赖项包含到我的 eclipse web 项目中。
所以
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>3.1.2</version>
</dependency>
在依赖项标签中,我添加了上述配置。现在,它是这样说的:
unable to find jars from the repositories (local and as well as remote)
它给出了执行命令的建议:
mvn install -artifactid=springframework (something like this)
但是当我提到版本为 2.5.6 时,它是正确的。maven存储库中版本3.1.2不可用的问题吗?如果 maven 对于最新版本不能正常工作,我如何获得最新版本?
它还给了我手动下载并放入本地存储库的建议。