Geoserver learning note (2): Download Code and load it in eclipse

Source: Internet
Author: User

Geoserver learning note (2): Download Code and load it in eclipse

Su Weimin http://www.gisdev.cn/http://blog.csdn.net/suen/ Date:

All copyrights reserved. If you need to reprint the information, contact the author and indicate the source in a conspicuous position.

We have outlined the features of geoserver (geoserver learning Note (I): geoserver overview, http://blog.csdn.net/suen/archive/2009/10/25/4726204.aspx), and then let's take a look at its code.

The first step in code analysis must be to open the code in IDE. I didn't expect the code to open geoserver to be a little more complicated. So let's introduce it first.

(1) download the geoserver code:

Can be downloaded directly through HTTP (http://geoserver.org/display/GEOS/Download) or SVN (SVN Co https://svn.codehaus.org/geoserver/branches/1.7.x geoserver_1.7.x)

(2) Use Maven to generate code:

CD geoserver_1.7.x/src

MVN clean install

This step takes a long time, because Maven needs to download the Java package online. If the package is not successfully generated, you don't have to worry about it. You can execute MVN install repeatedly and it will download the package that has not been downloaded successfully again.

(3) generate the Eclipse project file:

MVN Eclipse: Eclipse

(4) import the module in Eclipse:

A) run the Eclipse IDE

B) Open the eclipse preferences

C) navigate to Java, build path, classpath variables and click New...

 

 

D) Create a classpath variable named "m2_repo" and set the value to the location of the local Maven repository, and click 'OK

 

E) Click OK to apply the new eclipse preferences

F) Right-click in the package explorer and click Import...

 

G) select existing projects into workspace and click Next

 

H) navigate to the geoserver_1.7.x/src directory

I) ensure all modules are selected and click Finish

 

 

(5) Open the code in Eclipse:

Import an existing workspace, use the Geoserver source code directory, select all modules, and click Finish. Multiple projects such as cofig, data, geoserver-archetype-wfsoutputformat, gwc, main, ows, platform, rest, validation, wcs, wcs1_1, web, wfs, wfs11, and wms can be seen.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.