Maven - missing artifact

前端 未结 4 2101
自闭症患者
自闭症患者 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:46

    Ok, so you've just moved from one OS to another...

    There is a big chance, that Maven settings are different, and you just forgot to move some repositories configurations, etc. to the new place.

    Please check global Maven settings.xml or user-specific: ~/.m2/settings.xml on Linux and C:\User\[username]\.m2\settings.xml on Windows.

    Chances are you'll find something interesting.

    After fixing settings (if it's the cause), I would suggest to run Maven dependency plugin goal 'purge-loca-repository' for removing your project's dependencies from your local Maven repository and re-resolving them from scratch:

    mvn dependency:purge-local-repository
    

    Regarding aopalliance-1.0 artifact -> I haven't found it in java.net2/sonatype repositories, so please try Maven Central to resolve it:

    
      central
      Maven Central
      http://repo1.maven.org/maven2
    
    

    Good Luck!

提交回复
热议问题