admin管理员组文章数量:1304247
I am trying to setup my maven project on my linux Virtual Machine to run on Intellij IDEA. The VM has certain restrictions and runs on VPN and therefore, the maven central repository is blocked. The project runs fine on my local so what I did, since VPN blocks maven central, I copied the entire m2 folder from my local and put it on the virtual machine. The plugins, jars and dependencies are correctly displayed in m2 folder now. When I try to run the maven clean command "mvn clean install -o" for maven to clean install in offline mode, I get the below error -
BUILD FAILURE
[ERROR] Plugin .apache.maven.plugins:maven-clean-plugin:3.2.0 or one of its dependencies could not be resolved:
[ERROR] Cannot access central() in offline mode and the artifact .apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before. The following artifacts could not be resolved: .apache.maven.plugins:maven-clean-plugin:jar:3.2.0 (absent): Cannot access central () in offline mode and the artifact .apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before.
[ERROR] -> [Help 1] .apache.maven.plugin. Plugin Resolution Exception: Plugin .apache.maven.plugins:maven-clean-plugin:3.2.0 or one of its dependencies could not be resolved: Cannot access central () in offline mode and the artifact .apache.maven.plugins:maven-clean-plugin:jar:3.2.0 has not been downloaded from it before.
I know how maven works but I have never done all this work manually for setting up m2 folder. Any help would be appreciated. Thanks!
本文标签: javaMaven Plugins Error and manual installation of m2 folderStack Overflow
版权声明:本文标题:java - Maven Plugins Error and manual installation of m2 folder - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741781461a2397334.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论