Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
345 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...