2016-04-22 53 views
0

我想构建一个在Maven 2中使用Spring数据jpa的Springboot应用程序,并且出现以下错误。我有它在本地存储库中抱怨的依赖关系。有任何想法吗?在Maven2中构建Springboot的问题

Unable to read the metadata file for artifact 'org.hibernate:hibernate-validator:jar': 
POM 'org.jboss.shrinkwrap:shrinkwrap-bom' not found in repository: Unable to download the artifact from any repository 

回答

1

固定此;我必须将BOM依赖关系逐个添加到项目POM中。看起来Maven 2不喜欢关于传递BOM依赖关系的内容。

+0

[Maven 2 is dead](http://maven.apache.org/maven-2.x-eol.html)。使用Maven 3 ... – khmarbaise