Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

java - Error on Importing existing Maven project to eclipse

I imported a Maven project in to my Eclipse after that I ran maven clean. I am facing an error:

java.io.FileNotFoundException:/home/eclipse/.metadata/.plugins/org.eclips>e.m2e.launching/launches/m2conf9054790604023893654.tmp (No such file or >directory).at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:390) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356).

Can anyone tell me why I'm getting this error?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Please check if you have the .m2 folder in your home directory. This folder contains the repository of all the maven dependencies (jars) that we will be using in our code. In case the .m2 folder was not created by default when you installed eclipse, or if the version of eclipse you have does not support maven, install a version that has the maven plugin by default. Another option you can try is to create the .m2/repository folder in your home directory manually.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...