b***i 发帖数: 3043 | 1 Spring.io上面说,用Gradle或者Maven。那么,我是学在Openshift上运行Spring,需要
本地装Maven吗?
Openshift上的Spring quickstart项目里面有pom.xml,里面有Maven dependencies。
这是Eclipse集成了Maven还是Openshift上有Maven?
或者哪里可以找到下载spring那些jar? |
w**z 发帖数: 8232 | 2 maven 是做build的。.m2 目录下有个settings.xml, you can define maven repo
there and maven will download artifacts from those repos.
【在 b***i 的大作中提到】 : Spring.io上面说,用Gradle或者Maven。那么,我是学在Openshift上运行Spring,需要 : 本地装Maven吗? : Openshift上的Spring quickstart项目里面有pom.xml,里面有Maven dependencies。 : 这是Eclipse集成了Maven还是Openshift上有Maven? : 或者哪里可以找到下载spring那些jar?
|
d****i 发帖数: 4809 | 3 你用Eclipse的话可以装m2e插件,这样maven就自动和eclipse集成了。然后加入Spring
的dependency:
org.springframework
spring-context
xx.xx.xx.RELEASE
【在 b***i 的大作中提到】 : Spring.io上面说,用Gradle或者Maven。那么,我是学在Openshift上运行Spring,需要 : 本地装Maven吗? : Openshift上的Spring quickstart项目里面有pom.xml,里面有Maven dependencies。 : 这是Eclipse集成了Maven还是Openshift上有Maven? : 或者哪里可以找到下载spring那些jar?
|
b***i 发帖数: 3043 | 4 改了。没看到下载啊?Maven plugin什么下载这些东西?
【在 w**z 的大作中提到】 : maven 是做build的。.m2 目录下有个settings.xml, you can define maven repo : there and maven will download artifacts from those repos.
|
w**z 发帖数: 8232 | 5 type
mvn clean install
and can you compile your project? The artifacts are stored locally under .m2
/$LOCALREPODIR.
$LOCALREPODIR is defined in your settings.xml.
In eclipse, right mouse click on the (Maven) project -> maven -> update
Project, there should be Maven Dependencies under your Eclipse project and
you can see all the maven artifacts defined in POM.
【在 b***i 的大作中提到】 : 改了。没看到下载啊?Maven plugin什么下载这些东西?
|
b***i 发帖数: 3043 | |