How do I stop Maven 2.x from trying to retrieve non-existent pom.xml files for dependencies every build?

后端 未结 4 2067
灰色年华
灰色年华 2021-02-14 11:59

In my project, there are a number of dependencies that are transitively included from other dependencies that do not have pom.xml files available in any of our corporate reposit

4条回答
  •  别跟我提以往
    2021-02-14 12:30

    Pascal's answer is correct for two local build workarounds. However, your best option is to request the owners of these projects to create POMs for the artifacts. They don't need to be complex, the simple alternative that Maven is using internally will work:

    
      4.0.0
      aGroupId
      aArtifactId
      4.0.14i
    
    

提交回复
热议问题