编译运行spring-data-document
想看看spring与mongodb结合起来如何使用。
从https://github.com/SpringSource/spring-data-document上下载demo
用eclipse3.6-javaee版本打开demo的根目录
右键点spring-data-document-parent,runas-->maveninstall
控制台出现警告:
[WARNING]
[WARNING]Someproblemswereencounteredwhilebuildingtheeffectivemodelfororg.springframework.data:spring-data-document-parent:pom:1.0.0.BUILD-SNAPSHOT
[WARNING]'build.plugins.plugin.version'fororg.apache.maven.plugins:maven-surefire-pluginismissing.@line314,column15
[WARNING]'build.plugins.plugin.version'fororg.apache.maven.plugins:maven-source-pluginismissing.@line328,column15
[WARNING]
[WARNING]Itishighlyrecommendedtofixtheseproblemsbecausetheythreatenthestabilityofyourbuild.
[WARNING]
[WARNING]Forthisreason,futureMavenversionsmightnolongersupportbuildingsuchmalformedprojects.
[WARNING]
大概意思是,没有对org.apache.maven.plugins:maven-source-plugin这个插件指定版本号,指定一下就不报这个了!可以去http://repo1.maven.org/maven2/org/apache/maven/plugins/上查找某些插件的版本。