如何克服 maven FileNotFoundException 错误? [英] How to overcome maven FileNotFoundException error?

查看:27
本文介绍了如何克服 maven FileNotFoundException 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 usr/share/maven 上安装了 maven,并且还在 maven.sh 文件中设置了路径.我重新启动计算机并输入

I installed maven on usr/share/maven and also have set path in maven.sh file. i restart my computer and typed

mvn -version

出现错误

java.io.FileNotFoundException: /usr/share/apache-maven/conf/logging
        at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:264)
        at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:133)
        at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:131)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[sandip@bigdatasvn ~]$ java.io.FileNotFoundException: /usr/share/apache-maven/conf/logging^C

推荐答案

用这个命令重启eclipse -

Restart eclipse with this command -

eclipse.exe -clean

如果您使用的是 STS(Spring Tool Suite),请使用此命令重新启动 STS -

In case you are using STS (Spring Tool Suite), restart STS with this command -

STS.exe -clean

希望这会有所帮助:)

这篇关于如何克服 maven FileNotFoundException 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆