我做了mvn install
并收到此错误消息
Failed to execute goal on project core: Could not resolve dependencies for project test:core:jar:2.0.1-SNAPSHOT: Could not find artifact lib-net:lib-net:jar:1.0.8 in central (http://repo.maven.apache.org/maven2)
此依赖项是我的项目,可在本地存储库〜/ .m2
中使用所以我尝试mvn install -o
强制maven使用我的本地存储库,我得到了这个
Failed to execute goal on project core: Could not resolve dependencies for project test:core:jar:2.0.1-SNAPSHOT: The repository system is offline but the artifact lib-net:lib-net:jar:1.0.8 is not available in the local repository.
我尝试删除我的本地存储库并再次安装所有内容,但它并没有解决我的问题!
任何sugestions?
答案 0 :(得分:1)
问题在于maven版本。我在Jenkins机器上遇到了同样的问题。我按照这些步骤解决了我的问题: