如何使Maven使用正确的存储库?
我刚刚签出了一些项目并需要构建它们,但是我很早以前就安装了Maven(也许是6个月?),从那以后真的没有使用过-pom.xml我所拥有的项目没有这个“ http: //repo1.maven.org/myurlhere ”中的任何位置-它具有该url项目的Maven仓库的绝对位置,但是Maven仍在尝试从常规Maven仓库下载: Macintosh:trunk$ mvn clean install [INFO] Scanning for projects... Downloading: http://repo1.maven.org/url/project/project/x.x/project-x.x.pom [INFO] Unable to find resource 'url.project:project:pom:x.x' in repository central (http://repo1.maven.org/) [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: url.project ArtifactId: project Version: x.x Reason: Unable to download the artifact from any …