This article should be only for the primary MAVEN users like me, because they spend a lot of time to solve this problem, and many articles on the internet is also vague, so record it so that later as I can learn from one or two. There are a few details that I think need to be noticed and I will highlight it.
1. Description of the problem
Today I'm going to look at Robotum (whose project itself is based on Maven, because I found the project has the Pom.xml file) framework of the source code to understand its specific implementation to deepen understanding, but after downloading, follow the cognitive approach to import Maven Project will find function jumps and other functions do not work, press F3 to locate a function declaration position when it appears:
Problems opening an editor. Reasons: XXX does not exist
2. Steps to Resolve
2.1. Download Robotium Source code
2.2 Decompression
2.3 command line into the extracted source package execution MVN Eclipse:eclipseThis command, I think the main function is to automatically help us to generate the Elicpse project must. Project file, the source code we downloaded from GitHub does not have this file, which means that it is not the Eclipse project by default. It is important to note that we are running commands at the top of the project, butthe corresponding project information is written under the Robotium-solo folder in the top-level directory. Project below, so when we do import in the time to import is not the top-level directory of the specified project
2.4 Import maven ProjectA. Import Existing Maven Projects
B. Select the Import project path,Remember that this is not the top-level "Robotium-master" but the "Robotium-solo" under its subdirectory.
C. Click Finish to complete the project import
Steps to code Analysis for Eclipse import Robotium source on GitHub