How to set up maven 3 local plugin repository

后端 未结 3 2043
不思量自难忘°
不思量自难忘° 2021-02-05 19:35

I need to have a completely offline maven repository due to some limitations. According to http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException , only

相关标签:
3条回答
  • 2021-02-05 20:06

    Finally, I found the problem, there's a file called _maven.repositories in the plugin directory, after I delete the file, all works well!

    More details, see the following links:

    • http://maven.40175.n5.nabble.com/Maven-3-maven-repositories-and-lastUpdated-td4927537.html

    • http://jira.codehaus.org/browse/MNG-5181

    0 讨论(0)
  • 2021-02-05 20:10

    Since Maven 3.1-alpha-1, the command line option -llr/--legacy-local-repository or the system property -Dmaven.legacyLocalRepo=true should help

    See here for a general answer on working offline with maven

    0 讨论(0)
  • 2021-02-05 20:24

    This problem annoyed me so much that I patched the war plugin to have a disableOverlaying parameter. You may find it here - forked from the original : https://github.com/crowdcode-de/maven-war-plugin

    0 讨论(0)
提交回复
热议问题