在 Maven2 中构建 Springboot 的问题

Issue with building Springboot in Maven2

我正在尝试在 Maven 2 中构建一个使用 Spring 数据 jpa 的 Spring 启动应用程序,但出现以下错误。我有它在本地存储库中抱怨的依赖项。有什么想法吗?

   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

修复了这个问题;我必须将 BOM 依赖项逐一添加到项目 POM 中。看起来 Maven 2 不喜欢传递 BOM 依赖项。