Maven - missing artifact

前端 未结 4 2089
自闭症患者
自闭症患者 2020-12-18 06:36

I\'ve just moved my project from windows to linux ubuntu. After pulling files from repository it turned out that every pom.xml file consists errors. Not even one dependency

4条回答
  •  自闭症患者
    2020-12-18 06:51

    There are few common causes related to maven migration

    • Your project consists of many internal dependencies (artifact created by yourself / colleagues) stored on your PC maven repository cache, as opposed in a shared internal repository. When you migrated into new PC it's no longer able to resolve these
    • Your company has an internal maven repository (eg: nexus) and your project pom.xml isn't configured to search for this repository
    • Your project is a multi module which aren't setup very neatly such that the topmost artifact in the dependecy map has to be installed first on your local repo before others can pull it
    • Your new pc repository use different maven version / jdk version combinations

    Your pc local repo is normally located at ~/.m2/repository

提交回复
热议问题