为什么IDEA运行jar包不存在问题?

为什么IDEA运行jar包不存在问题?

小白求教  运行一个mybaits的demo,明明导入的包里面有该类,但是一运行却显示程序包不存在,换了版本也不行
求解决方法

把你本地的包 所在的文件 删了 ,从新 mavne  update

IDEA上面 Build——>Rebuild Project

都不行

到本地仓库,删除,到右边的maven,点更新

cmd路径切换到项目下执行mvn idea:idea,我也是这种情况,资源代下载然后就可以了,如果你执行之后可以又发现main函数执行的时候报出找不到主类的情况就点击file下的invalidata caches

虽然我看不懂mvn idea:idea是什么意思

显示BUILD FAILURE

试了还是没解决

clean 然后重新安装(install)

报错:Failed to execute goal org.apache.maven.plugins:maven-install- plugin:2.4:install (default-cli) on project mybatisTest: The packaging for this project did not assign a file to the build artifact

 

 

 

相关文章:

  • 2021-04-15
  • 2021-04-07
  • 2021-10-14
  • 2021-06-22
  • 2022-12-23
  • 2021-04-04
  • 2021-07-19
  • 2021-12-14
猜你喜欢
  • 2021-12-05
  • 2021-10-25
  • 2022-12-23
  • 2021-07-08
  • 2021-08-22
  • 2021-06-20
  • 2021-12-05
相关资源
相似解决方案