我在maven打包的时候出现问题,报错如下:

Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the

 

 

解决方法:

方法一:如果你出现了如上错误,是因为你的离线模式而导致的依赖的jar包或者需要的插件不能够联网下载

 

Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the

箭头处按钮不能点,点击后表示离线模式

 

 

 

方法二:idea里面点击File,然后点击Settings,选择maven,那个Work offine不能打勾,把勾去掉

Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2021-07-05
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-06-29
  • 2021-04-01
相关资源
相似解决方案