Already tried
- Can I convert eclipse source folders into packages?
- Eclipse Open declaration in Java project (results in 30,000+ compile errors)
The problem
I got Guava source by running at the command line (got guava-20.0-SNAPSHOT):
git clone --depth=1 https://github.com/google/guava.git Guava
Ran
pushd Guava
mvn install -DskipTests -Dmaven.javadoc.skip=true
from the command line successfully.
Then in Eclipse I did File > Import... > Existing Maven Project (Add project(s) to working set was checked). Everything seemed to work fine, but then when I open a file, click on a method name and press F3 ("Open Declaration") to go to the declaration of the method, I get the following error:
Problems opening an editor
Reason:
Guava does not exist
["Guava" is the Eclipse project name.]
Looks like Eclipse didn't build the project and is therefore unable to trace the source code. Can anybody tell me the proper way to import Guava code into Eclipse?
Configuration:
- Eclipse Mars (4.5.1)
- M2E
- Windows 7