I need to have a completely offline maven repository due to some limitations. According to http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException , only
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
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
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