On 2017-05-12 08:45:57, Song Gao wrote: > Thank Eric, I did MvnRepo and mvn eclipse:eclipse I will follow the link > you gave do it again see how it goes, meantime here is my .classpath file > anything missing > > <?xml version="1.0" encoding="UTF-8"?> > <classpath> > <classpathentry kind="src" path="hpasvc/src/main/java"/> > <classpathentry kind="src" path="hpasvc/src/test/java"/> > <classpathentry kind="src" path="proj-app/attribution/src"/> > <classpathentry kind="src" path="proj-app/attribution/test/src"/> > <classpathentry kind="src" path="proj-app/build/tools/src"/> > ::: mor src folders... > <classpathentry kind="src" path="proj-app/modules/src"/> > <classpathentry kind="src" path="proj-app/src/test/java"/> > <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> > <classpathentry kind="var" path="M2_REPO"/> > <classpathentry kind="var" path="ECLIPSE_HOME"/> > </classpath>
I don't see any lib/var entries in there for any third party jars. You should have things like: <classpathentry kind="var" path="M2_REPO/path/to/lib.jar"/> Where "path/to/lib.jar" would be the relative path within your ~/.m2/repository directory. > On Friday, May 12, 2017 at 11:28:05 AM UTC-4, Eric Van Dewoestine wrote: > > > > On 2017-05-12 07:26:38, Song Gao wrote: > > > ENV : eclim-2.6.0, eclipse neon, > > > What I did : > > > Under workspace of eclipse,I have a maven project directory. Then under > > > maven project I run > > > mvn eclipse:eclipse, open an vim and do :MvnRepo, and import the project > > > with :ProjectImport proj > > > my maven repo is at ~/.m2/repository > > > > > > Start eclimd service I can get :ProjectInfo (nature is none though by > > > default), when I try to use autocomplete, complain no required nature > > java, > > > I use :ProjectNatureAdd proj java added java nature, but I found a lot > > of > > > package cannot found. For example, in a test file, if I do :Validate to > > > check syntax, imported junit cannot be resolved, and autocompletion > > cannot > > > find junit package either. > > > > > > I have struggle with this problem for a long time, what can I do to > > resolve > > > this? Really appreciated. > > > > > > Song > > > > You most likely need to update your project's .classpath file to > > include the third party libs: > > > > http://eclim.org/vim/java/classpath.html#maven > > > > -- > > eric > > > > -- > You received this message because you are subscribed to the Google Groups > "eclim-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to eclim-user+unsubscr...@googlegroups.com. > To post to this group, send email to eclim-user@googlegroups.com. > Visit this group at https://groups.google.com/group/eclim-user. > For more options, visit https://groups.google.com/d/optout. -- eric -- You received this message because you are subscribed to the Google Groups "eclim-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to eclim-user+unsubscr...@googlegroups.com. To post to this group, send email to eclim-user@googlegroups.com. Visit this group at https://groups.google.com/group/eclim-user. For more options, visit https://groups.google.com/d/optout.