SpringMaven存储库问题(博客引用,但希望使用更新版本)
我已经使用下面的站点创建了一个maven web项目SpringMaven存储库问题(博客引用,但希望使用更新版本),spring,maven,Spring,Maven,我已经使用下面的站点创建了一个maven web项目 http://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/ 我已经执行了这里给出的所有步骤,并执行了一个简单的hello world程序。现在,我必须将spring依赖项包括到我的EclipseWeb项目中 所以 它建议执行该命令: mvn install -artifactid=springframework (something li
http://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/
我已经执行了这里给出的所有步骤,并执行了一个简单的hello world程序。现在,我必须将spring依赖项包括到我的EclipseWeb项目中
所以
它建议执行该命令:
mvn install -artifactid=springframework (something like this)
但当我提到版本2.5.6时,它的使用是正确的。maven repository无法使用3.1.2版是否存在问题?如果maven在最新版本中无法正常工作,如何获取最新版本
它还建议我手动下载并放入本地存储库。Maven坐标随时间而变化 尝试:
org.springframework
有关3.1.2,请参见
据我所知,Spring在过去4年中至少3次更改了他们的存储库URL和在线位置。因此,我会在他们的网站上查找有关设置Maven
配置以获取JAR的最新信息。谨防信息过期的物品:(
另外请注意,在2个示例中,artifactId是不同的,这是spring的另一个问题。“org.springframework.core”是他们的EBR和OSGi兼容版本的软件。“spring core”是旧的OSGi之前的坐标。找到适合你的,不要将它们混合在同一个项目中。例如,我正在使用“SpringCore”,因为我使用的是3.2.0.M2,这是里程碑式的版本。但生产版本EBR坐标是最好的使用
很抱歉做了这么多的编辑…但即使您了解获取Spring源代码软件的传统,这也是一个雷区。看看答案是否有帮助。
unable to find jars from the repositories (local and as well as remote)
mvn install -artifactid=springframework (something like this)
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.core</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.1.2.RELEASE</version>
</dependency>