1, http://geoserver.org/download/download source code
Example: Http://sourceforge.net/projects/geoserver/files/GeoServer/2.5.2/geoserver-2.5.2-src.zip
2. Download maven (http://maven.apache.org/download.cgi) Select Apache-maven-3.21-bin.zip,maven is the command line program, unzip the downloaded compressed package, temporarily specify the path variable when using.
3. Open cmd and jump to the src file in the directory where the GeoServer source code is located.
Execute command: Set path = "Maven_dir/bin";%PATH% temporarily adds Maven's path to the environment variable.
Execute command:
MVN clean Install
Mvn-dskiptests clean Install
Note: The first command executes the test case test class file while the project is being built, and errors may occur during the execution of the command; The second command, when building the project, does not test, and there are no exceptions to test for failure.
Building projects with Maven
4.
Create Eclipse project files from maven
Execute command: MVN eclipse:eclipse
5, open eclipse,import-"Existing Projects into Workspace, import can
Building GeoServer source project under Eclipse