编译运行spring-data-document
想看看spring与mongodb结合起来如何使用。
从 https://github.com/SpringSource/spring-data-document 上下载demo
用eclipse3.6-javaee版本打开demo的根目录
右键点 spring-data-document-parent, run as --> maven install
控制台出现警告:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.springframework.data:spring-data-document-parent:pom:1.0.0.BUILD-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 314, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 328, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
大概意思是, 没有对 org.apache.maven.plugins:maven-source-plugin 这个插件指定版本号,指定一下就不报这个了!可以去 http://repo1.maven.org/maven2/org/apache/maven/plugins/ 上查找某些插件的版本。
1 楼 ouyangshixiong 2011-06-19 怎么指定插件版本号?