2016-04-22 52 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