[GT学习笔记一]快速入门

<!-- [if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG /> </o:OfficeDocumentSettings> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>ZH-CN</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:EnableOpenTypeKerning /> <w:DontFlipMirrorIndents /> <w:OverrideTableStyleHps /> <w:UseFELayout /> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="0" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="0" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--><!-- [if !mso]> <object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui> </object> <mce:style><! st1/:*{behavior:url(#ieooui) } --> <!--[endif] --><!-- [if gte mso 10]> <mce:style><! /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} --> <!--[endif] -->

快速入门

欢迎开始 GeoTools工程!我们将使用 GeoTools创建一个工程,并且在屏幕上显示一个 shapefile

请认识到 GeoTools很大,准确的说是巨大。而且它依赖很多开源库、工具箱和工具等。跟踪这些是很繁杂的事情,因此我愿意向你介绍一个工具。

Maven是一个编译工具,用来帮助搜索这些零件。也许你之前使用过 Ant,或者集成很好的 IDE。如果这样,请花几分钟时间和我们一起建立一个简单的 Maven工程,我想你会觉得这个工具会把事情变的简单。

确保 Java Maven

检查一下你是否安装了 Maven命令行工具。如果是,查阅版本号如下:

C:/java/geotools-example>mvn -version
Maven version: 2.1.0
Java version: 1.5.0_18
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

我用的是 Java1.5 Maven2.1.0。你也可以用 Java 6如果你喜欢的话。目前, GeoTools是基于 Java1.5开发。

建立你的工程目录

首先让我们用 Maven创建工程。使用命令行如下:

C:java> mvn archetype:generate
C:/GeoTools>mvn archetype:generate
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] 
task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: remote -> docbkx-quickstart-archetype (-)
2: remote -> multi (-)
3: remote -> simple (-)
4: remote -> apparat-archetype-asm (-)
5: remote -> apparat-archetype-tdsi (-)
6: remote -> gquery-archetype (-)
7: remote -> gquery-plugin-archetype (-)
8: remote -> jdbc-proc-archetype (Creates simple project with jdbc-proc support)
9: remote -> liferay-layouttpl-archetype (Provides an archetype to create Liferay layout templates.)
10: remote -> liferay-portlet-archetype (Provides an archetype to create Liferay portlets.)
11: remote -> liferay-theme-archetype (Provides an archetype to create Liferay themes.)
12: remote -> rdfbean-tapestry-quickstart (-)
13: remote -> j2me-simple (Maven 2 Archetype for midlet application using j2me-maven-plugin)
14: remote -> vaadin-archetype-clean (-)
15: remote -> vaadin-archetype-sample (-)
16: remote -> vaadin-archetype-widget (-)
17: remote -> android-quickstart (-)
18: remote -> android-release (-)
19: remote -> android-with-test (-)
20: remote -> javascript-jqueryplugin (-)
21: remote -> javascript-quickstart (-)
22: remote -> jbosscc-seam-archetype (Maven Archetype to generate a Seam Application)
23: remote -> rails-maven-archetype (-)
24: remote -> maven-archetype-flex (An archetype which contains a sample Maven Flex project using the israfil maven plugin)
25: remote -> javate-zk-archetype (Archetype for a JavATE project that uses Hibernate and ZK.)
26: remote -> web-quickstart (-)
27: remote -> data-app (To make creating a new Databinder application easier, this archetype includes all required sources and resources.)
28: remote -> data-app (To make creating a new Databinder application easier, this archetype includes all required sources and resources.)
29: remote -> gae-archetype-gwt (-)
30: remote -> gae-archetype-jsf (-)
31: remote -> gae-archetype-jsp (-)
32: remote -> gae-archetype-objectify-jsp (-)
33: remote -> gae-archetype-wicket (-)
34: remote -> lift-archetype-basic (Basic project archetype for Lift Web Framework (with database, logging, user management).)
35: remote -> lift-archetype-basic_2.7.7 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
36: remote -> lift-archetype-basic_2.8.0 (Basic project archetype for Lift Web Framework (with database, logging, user management).)
37: remote -> lift-archetype-basic_2.8.1 (-)
38: remote -> lift-archetype-blank (Blank project archetype for Lift Web Framework.)
39: remote -> lift-archetype-blank_2.7.7 (Blank project archetype for Lift Web Framework.)
40: remote -> lift-archetype-blank_2.8.0 (Blank project archetype for Lift Web Framework.)
41: remote -> lift-archetype-blank_2.8.1 (-)
42: remote -> lift-archetype-hellolift (Archetype - hellolift, a sample Lift application)
43: remote -> lift-archetype-jpa-basic (Basic JPA archetype for Lift Web Framework.)
44: remote -> lift-archetype-jpa-basic_2.7.7 (Basic JPA archetype for Lift Web Framework.)
45: remote -> lift-archetype-jpa-basic_2.8.0 (Basic JPA archetype for Lift Web Framework.)
46: remote -> lift-archetype-jpa-basic_2.8.1 (-)
47: remote -> lift-archetype-jpa-blank (Blank JPA archetype for Lift Web Framework.)
48: remote -> lift-archetype-jpa-blank-single (Blank JPA archetype for Lift Web Framework (single project).)
49: remote -> lift-archetype-jpa-blank-single_2.7.7 (Blank JPA archetype for Lift Web Framework (single project).)
50: remote -> lift-archetype-jpa-blank-single_2.8.0 (Blank JPA archetype for Lift Web Framework (single project).)
51: remote -> lift-archetype-jpa-blank-single_2.8.1 (-)
52: remote -> lift-archetype-jpa-blank_2.7.7 (Blank JPA archetype for Lift Web Framework.)
53: remote -> lift-archetype-jpa-blank_2.8.0 (Blank JPA archetype for Lift Web Framework.)
54: remote -> lift-archetype-jpa-blank_2.8.1 (-)
55: remote -> lift-archetype-sbt (Basic project archetype for Lift Web Framework (with database, logging, user management) using the sbt build system)
56: remote -> lift-archetype-sbt_2.7.7 (Basic project archetype for Lift Web Framework (with database, logging, user management) using the sbt build system)
57: remote -> lift-archetype-sbt_2.8.0 (Basic project archetype for Lift Web Framework (with database, logging, user management) using the sbt build system)
58: remote -> lift-archetype-sbt_2.8.1 (-)
59: remote -> jlue-archetype-basic (Archetype - basic project for Jlue)
60: remote -> jlue-archetype-blank (Archetype - blank project for Jlue)
61: remote -> maven-archetype-har (-)
62: remote -> maven-archetype-sar (-)
63: remote -> maven-archetype-gwt (An archetype which contains a sample Maven GWT project.)
64: remote -> portletunit-portlet-archetype (An archetype that creates a simple porltet with unit tests.)
65: remote -> ota-tools-schema-archetype (-)
66: remote -> antlr3-maven-archetype (-)
67: remote -> camel-component (-)
68: remote -> camel-router (-)
69: remote -> camel-archetype-activemq (-)
70: remote -> camel-archetype-component (-)
71: remote -> camel-archetype-java (-)
72: remote -> camel-archetype-scala (-)
73: remote -> camel-archetype-spring (-)
74: remote -> camel-archetype-war (-)
75: remote -> cocoon-22-archetype-block (-)
76: remote -> cocoon-22-archetype-block-plain (-)
77: remote -> cocoon-22-archetype-webapp (-)
78: remote -> cocoon-archetype-block (-)
79: remote -> cocoon-archetype-parent (-)
80: remote -> cocoon-archetype-sample (-)
81: remote -> cocoon-archetype-webapp (-)
82: remote -> cxf-http-basic (-)
83: remote -> cxf-jaxws-javafirst (-)
84: remote -> apacheds-schema-archetype (-)
85: remote -> apacheds-testcase-archetype (-)
86: remote -> maven-ipojo-plugin (Maven Plugin to package iPOJO-powered bundles.)
87: remote -> geronimo-archetype-testsuite (Plugin to help create a testsuite)
88: remote -> geronimo-assembly-archetype (-)
89: remote -> geronimo-plugin-archetype (-)
90: remote -> geronimo-archetype-testsuite (Plugin to help create a testsuite)
91: remote -> geronimo-samples-archetype (Plugin to help create a samples project)
92: remote -> archetypes-command (-)
93: remote -> maven-archetype-archetype (An archetype which contains a sample archetype.)
94: remote -> maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.)
95: remote -> maven-archetype-marmalade-mojo (-)
96: remote -> maven-archetype-mojo (An archetype which contains a sample a sample Maven plugin.)
97: remote -> maven-archetype-plugin (An archetype which contains a sample Maven plugin.)
98: remote -> maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
 
existing Maven plugin project.)
99: remote -> maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.)
100: remote -> maven-archetype-profiles (-)
101: remote -> maven-archetype-quickstart (An archetype which contains a sample Maven project.)
102: remote -> maven-archetype-site (An archetype which contains a sample Maven site which demonstrates some of the supported document types like
 
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
 
upon an existing Maven project.)
103: remote -> maven-archetype-site-simple (An archetype which contains a sample Maven site.)
104: remote -> maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.)
105: remote -> myfaces-archetype-helloworld (Archetype to create a new webapp based on myfaces)
106: remote -> myfaces-archetype-helloworld-facelets (Archetype to create a new webapp based on MyFaces and Facelets)
107: remote -> myfaces-archetype-helloworld-portlets (Archetype to create a new portlet webapp based on myfaces)
108: remote -> myfaces-archetype-helloworld20 (Archetype to create a new webapp based on MyFaces 2.0)
109: remote -> myfaces-archetype-helloworld20-owb (Archetype to create a new webapp based on MyFaces 2.0 with OpenWebBeans)
110: remote -> myfaces-archetype-jsfcomponents (Archetype to create a libary project of JSF components)
111: remote -> myfaces-archetype-trinidad (Archetype to create a new webapp based on Trinidad)
112: remote -> myfaces-archetype-trinidad20 (Archetype to create a new webapp based on Trinidad and JSF 2.0)
113: remote -> myfaces-archetype-trinidad (Archetype to ease the burden of creating a new application based with Trinidad)
114: remote -> application-archetype (Jetspeed-2 Maven2 Archetype used to generate portal application templates.)
115: remote -> component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
 
be used by other components and applications.)
116: remote -> jetspeed-archetype (Jetspeed 2 Maven Archetype)
117: remote -> portal-archetype (Jetspeed-2 Maven2 Archetype used to generate portal instances.)
118: remote -> portal-component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
 
be injected/installed as a library in the portal application itself.)
119: remote -> shared-component-archetype (Jetspeed-2 Maven2 Archetype used to generate component templates to
 
be installed as a shared library for all portlet/web applications.)
120: remote -> servicemix-bean-service-unit (-)
121: remote -> servicemix-binding-component (-)
122: remote -> servicemix-camel-osgi-bundle (-)
123: remote -> servicemix-camel-service-unit (-)
124: remote -> servicemix-cxf-bc-service-unit (-)
125: remote -> servicemix-cxf-code-first-osgi-bundle (-)
126: remote -> servicemix-cxf-se-service-unit (-)
127: remote -> servicemix-cxf-se-wsdl-first-service-unit (-)
128: remote -> servicemix-cxf-wsdl-first-osgi-bundle (-)
129: remote -> servicemix-drools-service-unit (-)
130: remote -> servicemix-eip-service-unit (-)
131: remote -> servicemix-embedded-simple (-)
132: remote -> servicemix-exec-service-unit (-)
133: remote -> servicemix-file-poller-service-unit (-)
134: remote -> servicemix-file-sender-service-unit (-)
135: remote -> servicemix-file-service-unit (-)
136: remote -> servicemix-ftp-poller-service-unit (-)
137: remote -> servicemix-ftp-sender-service-unit (-)
138: remote -> servicemix-ftp-service-unit (-)
139: remote -> servicemix-http-consumer-service-unit (-)
140: remote -> servicemix-http-provider-service-unit (-)
141: remote -> servicemix-http-service-unit (-)
142: remote -> servicemix-jms-consumer-service-unit (-)
143: remote -> servicemix-jms-provider-service-unit (-)
144: remote -> servicemix-jms-service-unit (-)
145: remote -> servicemix-jsr181-annotated-service-unit (-)
146: remote -> servicemix-jsr181-service-unit (-)
147: remote -> servicemix-jsr181-wsdl-first-service-unit (-)
148: remote -> servicemix-lwcontainer-service-unit (-)
149: remote -> servicemix-mail-service-unit (-)
150: remote -> servicemix-ode-service-unit (-)
151: remote -> servicemix-osgi-bundle (-)
152: remote -> servicemix-osworkflow-service-unit (-)
153: remote -> servicemix-project-root (-)
154: remote -> servicemix-quartz-service-unit (-)
155: remote -> servicemix-saxon-service-unit (-)
156: remote -> servicemix-saxon-xquery-service-unit (-)
157: remote -> servicemix-saxon-xslt-service-unit (-)
158: remote -> servicemix-script-service-unit (-)
159: remote -> servicemix-scripting-service-unit (-)
160: remote -> servicemix-service-assembly (-)
161: remote -> servicemix-service-engine (-)
162: remote -> servicemix-service-unit (-)
163: remote -> servicemix-shared-library (-)
164: remote -> servicemix-smpp-service-unit (-)
165: remote -> servicemix-snmp-service-unit (-)
166: remote -> servicemix-validation-service-unit (-)
167: remote -> servicemix-vfs-service-unit (-)
168: remote -> servicemix-xmpp-service-unit (-)
169: remote -> sling-initial-content-archetype (Maven archetype for initial content)
170: remote -> sling-servlet-archetype (Maven archetype for Sling Servlets)
171: remote -> struts2-archetype-blank (-)
172: remote -> struts2-archetype-convention (-)
173: remote -> struts2-archetype-dbportlet (-)
174: remote -> struts2-archetype-plugin (-)
175: remote -> struts2-archetype-portlet (-)
176: remote -> struts2-archetype-starter (-)
177: remote -> synapse-package-archetype (-)
178: remote -> quickstart (Archetype for creating a basic Tapestry 5 application.)
179: remote -> tapestry-archetype (-)
180: remote -> tapestry-simple (Archetype for creating a basic Tapestry 5 application, including Eclipse control files.)
181: remote -> tuscany-binding-archetype (-)
182: remote -> tuscany-contribution-jar (-)
183: remote -> tuscany-contribution-zip (-)
184: remote -> tuscany-quickstart (-)
185: remote -> tuscany-quickstart-bpel (-)
186: remote -> tuscany-quickstart-jsf (-)
187: remote -> tuscany-quickstart-jsonp (-)
188: remote -> tuscany-quickstart-stripes (-)
189: remote -> wicket-archetype-quickstart (-)
190: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
191: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
192: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
193: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
194: remote -> appfuse-core (Maven 2 archetype that creates a backend (Managers, DAOs and Web Services)
 
application with AppFuse embedded in it.)
195: remote -> appfuse-modular-jsf (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 

as AppFuse's JSF implementation.)
196: remote -> appfuse-modular-spring (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Spring MVC implementation.)
197: remote -> appfuse-modular-struts (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Struts implementation.)
198: remote -> appfuse-modular-tapestry (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Tapestry implementation.)
199: remote -> appfuse-basic-jsf (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
200: remote -> appfuse-basic-jsf-archetype (AppFuse Archetype)
201: remote -> appfuse-basic-spring (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
202: remote -> appfuse-basic-spring-archetype (AppFuse Archetype)
203: remote -> appfuse-basic-struts (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
204: remote -> appfuse-basic-struts-archetype (AppFuse Archetype)
205: remote -> appfuse-basic-tapestry (Maven 2 archetype that creates a web application with AppFuse embedded in it.)
206: remote -> appfuse-basic-tapestry-archetype (AppFuse Archetype)
207: remote -> appfuse-core (Maven 2 archetype that creates a backend (Managers, DAOs and Web Services)
 
application with AppFuse embedded in it.)
208: remote -> appfuse-core-archetype (-)
209: remote -> appfuse-light-jsf-archetype (AppFuse Archetype)
210: remote -> appfuse-light-spring-archetype (AppFuse Archetype)
211: remote -> appfuse-light-spring-freemarker-archetype (AppFuse Archetype)
212: remote -> appfuse-light-spring-security-archetype (AppFuse Archetype)
213: remote -> appfuse-light-stripes-archetype (AppFuse Archetype)
214: remote -> appfuse-light-struts-archetype (AppFuse Archetype)
215: remote -> appfuse-light-tapestry-archetype (AppFuse Archetype)
216: remote -> appfuse-light-wicket-archetype (AppFuse Archetype)
217: remote -> appfuse-modular-jsf (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's JSF implementation.)
218: remote -> appfuse-modular-jsf-archetype (AppFuse Archetype)
219: remote -> appfuse-modular-spring (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Spring MVC implementation.)
220: remote -> appfuse-modular-spring-archetype (AppFuse Archetype)
221: remote -> appfuse-modular-struts (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 

"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Struts implementation.)
222: remote -> appfuse-modular-struts-archetype (AppFuse Archetype)
223: remote -> appfuse-modular-tapestry (Maven 2 archetype that creates a modular web application with AppFuse. This archetype creates two modules:
 
"core" and "web". The core module depends on appfuse-service, while the web module depends on core as well
 
as AppFuse's Tapestry implementation.)
224: remote -> appfuse-modular-tapestry-archetype (AppFuse Archetype)
225: remote -> drools4-integration-helper-archetype (Support of the archetype for the Maven plugin)
226: remote -> drools5-integration-helper-archetype (This is an Maven 2 Archetype to support creation of a ready to
 
use Maven 2 project with Drools support. This archetype contains
 
examples of code based on interface, classes and pre/post
 
condition. JUnit 4 examples are also included.)
227: remote -> cargo-archetype-webapp-functional-tests-module (-)
228: remote -> cargo-archetype-webapp-single-module (-)
229: remote -> codegen-testcase (-)
230: remote -> cpa-testcase (-)
231: remote -> enunciate-simple-archetype (-)
232: remote -> gmaven-archetype-basic (-)
233: remote -> gmaven-archetype-mojo (-)
234: remote -> gmaven-archetype-basic (-)
235: remote -> gmaven-archetype-mojo (-)
236: remote -> maven-archetype-nbm (Archetype for Netbeans Modules Maven setup)
237: remote -> gwt-maven-plugin (Maven plugin for the Google Web Toolkit.)
238: remote -> latex-maven-archetype (-)
239: remote -> xmlbeans-maven-plugin (Runs the xmlbeans parser/code generator against schemas in files and dependent jars.)
240: remote -> appframework (Archetype for creating application based on JSR 296)
241: remote -> ear-j2ee14 (Archetype for creating J2EE 1.4 EAR)
242: remote -> ear-javaee6 (Archetype for EAR package using Java EE 6)
243: remote -> ear-jee5 (Archetype for creating JEE 5 EAR)
244: remote -> ejb-j2ee13 (An archetype which contains a sample J2EE 1.3 EJB Maven project.)
245: remote -> ejb-j2ee14 (An archetype which contains a sample J2EE 1.4 EJB Maven project.)
246: remote -> ejb-javaee6 (Archetype for an EJB package using Java EE 6.)
247: remote -> ejb-jee5 (JEE 5 ejb jar archetype)
248: remote -> nbm-archetype (-)
249: remote -> nbm-osgi-archetype (Archetype for development of NetBeans modules that can depend on OSGi bundles.)
250: remote -> nbm-suite-root (-)
251: remote -> netbeans-platform-app-archetype (-)
252: remote -> osgi-archetype (-)
253: remote -> pom-root (Root project archetype for creating multi module projects)
254: remote -> webapp-j2ee13 (J2EE 1.3 web application archetype)
255: remote -> webapp-j2ee14 (J2EE 1.4 web application archetype)
256: remote -> webapp-javaee6 (Archetype for a web application using Java EE 6.)
257: remote -> webapp-jee5 (JEE 5 web application archetype)
258: remote -> groovy-maven-archetype (An archetype for creating Maven modules/projects using the Groovy language.)
259: remote -> groovy-mojo-archetype (An archetype for writing Maven 2 plugins in the Groovy language.)
260: remote -> org.openxma.dsl.sample-archetype (-)
261: remote -> sonar-basic-plugin-archetype (-)
262: remote -> sonar-gwt-plugin-archetype (-)
263: remote -> cometd-archetype-dojo-jetty6 (-)
264: remote -> cometd-archetype-dojo-jetty7 (-)
265: remote -> cometd-archetype-jquery-jetty6 (-)
266: remote -> cometd-archetype-jquery-jetty7 (-)
267: remote -> cometd-archetype-spring-dojo-jetty7 (-)
268: remote -> cometd-archetype-spring-jquery-jetty7 (-)
269: remote -> coos-plugin-actor (-)
270: remote -> coos-plugin-api (-)
271: remote -> coos-plugin-noapi (-)
272: remote -> jee6-basic-archetype (-)
273: remote -> jee6-minimal-archetype (-)
274: remote -> jee6-sandbox-archetype (-)
275: remote -> jee6-sandbox-demo-archetype (-)
276: remote -> jee6-servlet-basic-archetype (-)
277: remote -> jee6-servlet-demo-archetype (-)
278: remote -> jee6-servlet-minimal-archetype (-)
279: remote -> jee6-servlet-sandbox-archetype (-)
280: remote -> scalate-archetype-empty (An archetype which creates an empty Scalate web application)
281: remote -> scalate-archetype-guice (-)
282: remote -> scalate-archetype-jersey (-)
283: remote -> scalate-archetype-sitegen (-)
284: remote -> geomajas-gwt-archetype (-)
285: remote -> geoserver-archetype-wfsoutputformat (-)
286: remote -> grails-maven-archetype (-)
287: remote -> graniteds-spring-jpa-hibernate (-)
288: remote -> graniteds-tide-cdi-jpa (-)
289: remote -> graniteds-tide-seam-jpa-hibernate (-)
290: remote -> graniteds-tide-spring-jpa-hibernate (-)
291: remote -> imixs-workflow-jee-archetype (Imixs Workflow JEE Archetype provides a JEE Sample Application)
292: remote -> jboss-javaee6-webapp (-)
293: remote -> jboss-jsf-weld-servlet-webapp (-)
294: remote -> weld-jsf-jee (Weld archetype for creating a Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1 and JPA 2.0 (persistence unit included))
295: remote -> weld-jsf-jee-minimal (Weld archetype for creating a minimal Java EE 6 application using JSF 2.0, CDI 1.0 and EJB 3.1 (persistence unit not included))
296: remote -> weld-jsf-servlet-minimal (Weld archetype for creating an application using JSF 2.0 and CDI 1.0 for Servlet Containers (Tomcat 6 / Jetty 6))
297: remote -> jbundle-util-webapp-cgi-archetype (-)
298: remote -> jbundle-util-webapp-files-archetype (-)
299: remote -> jbundle-util-webapp-proxy-archetype (-)
300: remote -> jbundle-util-webapp-redirect-archetype (-)
301: remote -> jbundle-util-webapp-upload-archetype (-)
302: remote -> jbundle-util-webapp-webdav-archetype (-)
303: remote -> jbundle-util-webapp-website-archetype (-)
304: remote -> jbundle-util-webapp-webstart-archetype (-)
305: remote -> jclouds-compute-service-archetype (-)
306: remote -> jclouds-rest-client-archetype (-)
307: remote -> jibx-ota-osgi-archetype (-)
308: remote -> jini-service-archetype (Archetype for Jini service project creation)
309: remote -> maven-hpi-plugin (Maven2 plugin for developing Hudson plugins)
310: remote -> makumba-archetype (Archetype for a makumba web-application)
311: remote -> ibean-archetype (An archetype for creating an empty ibean maven project)
312: remote -> ibean-archetype (Creates a new iBean project that talks to an external service i.e. Twitter, Amazon S3, Flickr). The project will define the dependencies and documented sample
 
code for the ibean itself and a a working testcase.)
313: remote -> mule-catalog-archetype (-)
314: remote -> mule-cloud-connector-archetype (-)
315: remote -> mule-example-archetype (An archetype for creating a Mule example application.)
316: remote -> mule-module-archetype (An architype for creating a Mule Module. It provides options for adding certain mule features and configuring the
 
module for Muleforge.)
317: remote -> mule-project-archetype (An architype for creating Mule applications.)
318: remote -> mule-transport-archetype (Archetype for Mule 2.0 and above transport projects.)
319: remote -> multiverse-project-archetype (Skeleton for a project using Multiverse)
320: remote -> application-archetype (-)
321: remote -> remoting-support (-)
322: remote -> application (-)
323: remote -> hibernate-support (-)
324: remote -> html-war (-)
325: remote -> htmlviewer-war (-)
326: remote -> application (-)
327: remote -> icons (-)
328: remote -> maven-archetype-cecilia-app (This archetype is useful to quick start Cecilia applications,
 
having a source tree template already filled.)
329: remote -> maven-archetype-cecilia-application (This archetype is useful to quick start Cecilia applications, having a
 
source tree template already filled.)
330: remote -> maven-archetype-cecilia-library (This archetype is useful to quick start Cecilia components library
 
projects, having a source tree template already filled.)
331: remote -> maven-archetype-petals-jbi-binding-component (>This project is Maven 2 archetype associated to a JBI binding component project.)
332: remote -> maven-archetype-petals-jbi-service-assembly (This project is Maven 2 archetype associated to a JBI service assembly project.)
333: remote -> maven-archetype-petals-jbi-service-engine (This project is Maven 2 archetype associated to a JBI service engine project.)
334: remote -> maven-archetype-petals-jbi-service-unit (This project is Maven 2 archetype associated to a JBI service unit project.)
335: remote -> openengsb-tooling-archetypes-connector (Archetype to produce new Connector project)
336: remote -> openengsb-tooling-archetypes-domain (Archetype to produce new Domain project)
337: remote -> openl-simple-project (-)
338: remote -> maven-archetype-osgi-bundle (-)
339: remote -> maven-archetype-osgi-project (-)
340: remote -> maven-archetype-osgi-service (-)
341: remote -> maven-archetype-osgi-wrapper (-)
342: remote -> maven-archetype-spring-bean (-)
343: remote -> maven-archetype-paxexam-junit ()
344: remote -> kerneos-module-archetype (-)
345: remote -> kerneos-war-archetype (-)
346: remote -> camel-archetype-simple-route (-)
347: remote -> maven-archetype-petals-jbi-binding-component (This project is Maven 2 archetype associated to a JBI binding component project.)
348: remote -> maven-archetype-petals-jbi-service-assembly (This project is Maven 2 archetype associated to a JBI service assembly project.)
349: remote -> maven-archetype-petals-jbi-service-engine (This project is Maven 2 archetype associated to a JBI service engine project.)
350: remote -> maven-archetype-petals-jbi-service-unit (This project is Maven 2 archetype associated to a JBI service unit project.)
351: remote -> maven-archetype-petals-jbi-shared-library (This project is Maven 2 archetype associated to a JBI Shared Library project.)
352: remote -> parallelj-archetype (-)
353: remote -> parancoe-pluginarchetype (-)
354: remote -> parancoe-webarchetype (-)
355: remote -> pustefix-archetype-application (-)
356: remote -> pustefix-archetype-basic (-)
357: remote -> pustefix-archetype-module (-)
358: remote -> liftweb-archetype-blank (Archetype - blank project for liwftweb)
359: remote -> liftweb-archetype-hellolift (Archetype - hellolift sample liwftweb application)
360: remote -> scala-archetype-simple (The maven-scala-plugin is used for compiling/testing/running/documenting scala code in maven.)
361: remote -> slf4j-archetype (The slf4j Archetype)
362: remote -> flexmojos-archetypes-application (-)
363: remote -> flexmojos-archetypes-library (-)
364: remote -> flexmojos-archetypes-modular-webapp (-)
365: remote -> nexus-plugin-archetype (-)
366: remote -> spring-osgi-bundle-archetype (Spring OSGi Maven2 Archetype)
367: remote -> spring-ws-archetype (Spring Web Services Maven2 Archetype.)
368: remote -> syncope-archetype (-)
369: remote -> trails-archetype (-)
370: remote -> trails-secure-archetype (-)
371: remote -> tynamo-archetype (-)
372: remote -> wicket-scala-archetype (-)
373: remote -> wikbook.archetype (-)
374: remote -> circumflex-archetype (-)
375: remote -> javg-minimal-archetype (-)
=====================================================================
首先会列出一系列的
archetype供选择,选择默认的
quickstart archetype
number101
)(作者注:原文选择
number15
有误)
======================================
Choose a number: 101: 101
Choose version:
1: 1.0-alpha-1
2: 1.0-alpha-2
3: 1.0-alpha-3
4: 1.0-alpha-4
5: 1.0
6: 1.1
Choose a number: 6: 6
========================================
接下来会有一系列提示符,输入以下参数:

groupId : org.geotools.demo artifactId: example version: 1.0-SNAPSHOT package: org.geotools.demo.example

最后一个参数是否确认选择。选择
Y
并回车,
maven
会自动下载一些东西,然后创建
example
目录。
===================================
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.1/maven-archetype-quickstart-1.1.jar
 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.1/maven-archetype-quickstart-1.1.pom
 
Define value for property 'groupId': : org.geotools.demo
Define value for property 'artifactId': : example
Define value for property 'version': 1.0-SNAPSHOT: 1.0-SNAPSHOT
Define value for property 'package': org.geotools.demo: org.geotools.demo.example
Confirm properties configuration:
groupId: org.geotools.demo
artifactId: example
version: 1.0-SNAPSHOT
package: org.geotools.demo.example
Y: y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.geotools.demo
[INFO] Parameter: packageName, Value: org.geotools.demo.example
[INFO] Parameter: basedir, Value: C:/GeoTools
[INFO] Parameter: package, Value: org.geotools.demo.example
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: example
[INFO] ********************* End of debug info from resources from generated POM ***********************
[INFO] project created from Old (1.x) Archetype in dir: C:/GeoTools/example
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 22 seconds
[INFO] Finished at: Mon Mar 07 18:53:53 CST 2011
[INFO] Final Memory: 11M/21M
[INFO] ------------------------------------------------------------------------
======================================
 

Eclipse IDE

Eclipse用户需要为 IDE做一些设置:

C:java>cd example

C:java/example>mvn eclipse:eclipse

需要提供给 eclipse一些它需要的背景信息, eclipse用这些信息与 Maven repository交流( Maven下载大概 30 jar

1. 启动 eclipse

2. 打开 Windows->Preferences菜单

3. 进入 Java->Classpath Variables选项页。

4. 添加 M2_REPO classpath变量,并指向本地的 repository目录

这样就可以引入工程到 eclipse

1. 选择 File->Import菜单

2. 选择已存在的工程,点击 Next

3. 选择你创建的工程 : C:/GeoTools/example

4. 完成

新的工程

1. IDE新创建的工程中,打开 pom.xml文件

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.geotools.demo</groupId>

<artifactId>example</artifactId>

<packaging>jar</packaging>

<version>1.0-SNAPSHOT</version>

<name>example</name>

<url>http://maven.apache.org</url>

<dependencies>

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>

</dependencies>

</project>

2. 这个文件是描述你的工程的 maven 。目前只有一个 dependency ,是关于 junit 的,版本号是 3.8.1

3. IDE 里同样可以看到这个 dependency

GeoTools 的依赖

为了使用 GeoTools ,需要在 pom.xml 中添加两个内容:

一个定义了 GeoTools 版本号的属性元素( properties element , 本例中使用 2.6.4

一个新的依赖( dependency ): gt-main

一系列 repositories ,从中 maven 可以找到 GeoTools 和它所要使用的原材料

================

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.geotools.demo</groupId>

<artifactId>example</artifactId>

<packaging>jar</packaging>

<version>1.0-SNAPSHOT</version>

<name>example</name>

<url>http://maven.apache.org</url>

<properties>

<geotools.version>2.6.4</geotools.version>

</properties>

<dependencies>

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>

<dependency>

<groupId>org.geotools</groupId>

<artifactId>gt-main</artifactId>

<version>${geotools.version}</version>

</dependency>

</dependencies>

<repositories>

<repository>

<id>maven2-repository.dev.java.net</id>

<name>Java.net repository</name>

<url>http://download.java.net/maven/2</url>

</repository>

<repository>

<id>osgeo</id>

<name>Open Source Geospatial Foundation Repository</name>

<url>http://download.osgeo.org/webdav/geotools/</url>

</repository>

</repositories>

</project>

================

注意:我们是怎样利用 gt-main 依赖来使用 geotools.version 属性的。

稍后的介绍我们 pom.xml 文件的依赖部分,因为你不需要对其他部分做更多的修改。我们会增加更多的依赖从而尝试更多的库文件。

升级 IDE (仅限 Eclipse

1. 可以通过重新生成 .classpath .project 文件让 IDE 知道这些组件。

==============

C:/GeoTools/example>mvn eclipse:eclipse

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'eclipse'.

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [eclipse:eclipse]

[INFO] ------------------------------------------------------------------------

[INFO] Preparing eclipse:eclipse

[INFO] No goals needed for project - skipping

[INFO] [eclipse:eclipse]

[INFO] Using Eclipse Workspace: null

[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER

Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar

[INFO] Not writing settings - defaults suffice

[INFO] Wrote Eclipse project for "example" to C:/GeoTools/example.

[INFO]

Sources for some artifacts are not available.

Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.

List of artifacts without a source archive:

o junit:junit:3.8.1

Javadoc for some artifacts is not available.

Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.

List of artifacts without a javadoc archive:

o junit:junit:3.8.1

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 8 seconds

[INFO] Finished at: Mon Mar 07 18:55:00 CST 2011

[INFO] Final Memory: 7M/14M

[INFO] ------------------------------------------------------------------------

==========================

2. 刷新 Eclipse 工程

3. GeoTools (和其他组件)都会出现在你的工程里。

修改 Main 函数

打开 App

===================

package org.geotools.demo.example;

/**

* Hello world!

*

*/

public class App

{

public static void main( String[] args )

{

System.out.println( "Hello World!" );

}

}

===================

添加一些 GeoTools 代码进去:

===================

package org.geotools.demo.example;

import org.geotools.factory.GeoTools;

/**

* Hello world!

*

*/

public class App

{

public static void main( String[] args )

{

System.out.println( "Hello GeoTools:" + GeoTools.getVersion() );

}

}

===================

可以通过 IDE 或者命令行,编译运行应用程序。

通过命令行编译应用程序,只需要输入简单的命令 mvn compile

===============

C:/GeoTools/example>mvn compile

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [compile]

[INFO] ------------------------------------------------------------------------

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/9/maven-parent-9.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-components/10/maven-shared-components-10.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting/2.0.6/maven-reporting-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-7/doxia-1.0-alpha-7.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interpolation/1.6/plexus-interpolation-1.6.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interpolation/1.6/plexus-interpolation-1.6.jar

[INFO] [resources:resources]

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:/GeoTools/example/src/main/resources

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler/1.5.3/plexus-compiler-1.5.3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compilers/1.5.3/plexus-compilers-1.5.3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.5/plexus-utils-1.0.5.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar

[INFO] [compiler:compile]

[INFO] Nothing to compile - all classes are up to date

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1 minute 51 seconds

[INFO] Finished at: Tue Mar 08 09:28:57 CST 2011

[INFO] Final Memory: 5M/10M

[INFO] ------------------------------------------------------------------------

===================

通过命令行运行程序显得比较笨重,需要这样的 maven 语句:

===================

C:/java/example>mvn exec:java -Dexec.mainClass="org.geotools.demo.example.App"

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'exec'.

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [exec:java]

[INFO] ------------------------------------------------------------------------

[INFO] Preparing exec:java

[INFO] No goals needed for project - skipping

[INFO] [exec:java]

Hello GeoTools:2.6.4

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2 seconds

[INFO] Finished at: Fri Aug 07 21:09:19 EST 2009

[INFO] Final Memory: 7M/13M

[INFO] ------------------------------------------------------------------------

===================

提示:如果你经常通过命令行运行程序,可以通过将 main 类指定到 pom.xml 文件中来避免上面冗长的命令,详情查看 maven 的文档。

如何读取和显示 shape 文件

如果对 maven 感到厌烦,那就着手处理一些真实的空间数据。 Shape 文件格式是 ESRI 公司的产品,目前非常常用。如果你手边没有 shape 文件,可以从以下链接下载 world_borders.zip world_borders.prj 文件

http://www.mappinghacks.com/data/

更多的样本数据可以从以下链接获得:

http://udig.refractions.net/docs/data.zip

提示:确信将这些存档文件解压成独立的 shp, dbf shx文件。 Prj文件用来描述数据的设计,如果你想要绘制或分析,那么它会非常有用。

在工程中添加 shape EPSG-HSQL插件

首先在我们的 GeoTools应用程序中添加两个插件。插件用于向核心库添加功能。

以下是我们用于读取 shape文件的插件:

gt-shapefile用来读取 shp, dbf, shx等文件

gt-epsg-hsql用于读取 prj文件(地图描述)

gt-swing GeoTools的一组 Swing GUI

gt-render用于绘制地图特性

====================

<dependency>

<groupId>org.geotools</groupId>

<artifactId>gt-shapefile</artifactId>

<version>${geotools.version}</version>

</dependency>

<dependency>

<groupId>org.geotools</groupId>

<artifactId>gt-epsg-hsql</artifactId>

<version>${geotools.version}</version>

</dependency>

<dependency>

<groupId>org.geotools</groupId>

<artifactId>gt-swing</artifactId>

<version>${geotools.version}</version>

</dependency>

====================

刷新 IDE 工程文件

Eclipse 用户

1. 将这些依赖加入到 IDE 里面

=============

C:/GeoTools/example>mvn eclipse:eclipse

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'eclipse'.

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [eclipse:eclipse]

[INFO] ------------------------------------------------------------------------

[INFO] Preparing eclipse:eclipse

[INFO] No goals needed for project - skipping

[INFO] [eclipse:eclipse]

[INFO] Using Eclipse Workspace: null

[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER

[INFO] Not writing settings - defaults suffice

[INFO] File C:/GeoTools/example/.project already exists.

Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.

[INFO] Wrote Eclipse project for "example" to C:/GeoTools/example.

[INFO]

Sources for some artifacts are not available.

Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.

List of artifacts without a source archive:

o junit:junit:3.8.1

Javadoc for some artifacts is not available.

Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.

List of artifacts without a javadoc archive:

o junit:junit:3.8.1

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 6 seconds

[INFO] Finished at: Tue Mar 08 09:32:23 CST 2011

[INFO] Final Memory: 7M/14M

[INFO] ------------------------------------------------------------------------

C:/GeoTools/example>mvn eclipse:eclipse

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'eclipse'.

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [eclipse:eclipse]

[INFO] ------------------------------------------------------------------------

[INFO] Preparing eclipse:eclipse

[INFO] No goals needed for project - skipping

[INFO] [eclipse:eclipse]

[INFO] Using Eclipse Workspace: null

[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER

Downloading: http://download.java.net/maven/2/org/geotools/gt-main/2.6.4/gt-main-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:gt-main:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-main/2.6.4/gt-main-2.6.4.pom

7K downloaded (gt-main-2.6.4.pom)

Downloading: http://download.java.net/maven/2/org/geotools/library/2.6.4/library-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:library:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/library/2.6.4/library-2.6.4.pom

2K downloaded (library-2.6.4.pom)

Downloading: http://download.java.net/maven/2/org/geotools/modules/2.6.4/modules-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:modules:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/modules/2.6.4/modules-2.6.4.pom

10K downloaded (modules-2.6.4.pom)

Downloading: http://download.java.net/maven/2/org/geotools/geotools/2.6.4/geotools-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:geotools:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/geotools/2.6.4/geotools-2.6.4.pom

43K downloaded (geotools-2.6.4.pom)

Downloading: http://download.java.net/maven/2/org/geotools/gt-api/2.6.4/gt-api-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:gt-api:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-api/2.6.4/gt-api-2.6.4.pom

4K downloaded (gt-api-2.6.4.pom)

Downloading: http://download.java.net/maven/2/com/vividsolutions/jts/1.10/jts-1.10.pom

[INFO] Unable to find resource 'com.vividsolutions:jts:pom:1.10' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//com/vividsolutions/jts/1.10/jts-1.10.pom

193b downloaded (jts-1.10.pom)

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '6ffc98363518cce6a70d2f40bca98edf6040139d'; remote = 'da7784dd71d9f52390e994f11142c3db6483f66c' - RETRYING

Downloading: http://download.osgeo.org/webdav/geotools//com/vividsolutions/jts/1.10/jts-1.10.pom

193b downloaded (jts-1.10.pom)

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '6ffc98363518cce6a70d2f40bca98edf6040139d'; remote = 'da7784dd71d9f52390e994f11142c3db6483f66c' - IGNORING

Downloading: http://download.java.net/maven/2/org/geotools/gt-referencing/2.6.4/gt-referencing-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:gt-referencing:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-referencing/2.6.4/gt-referencing-2.6.4.pom

6K downloaded (gt-referencing-2.6.4.pom)

Downloading: http://download.java.net/maven/2/java3d/vecmath/1.3.2/vecmath-1.3.2.pom

[INFO] Unable to find resource 'java3d:vecmath:pom:1.3.2' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//java3d/vecmath/1.3.2/vecmath-1.3.2.pom

386b downloaded (vecmath-1.3.2.pom)

Downloading: http://download.java.net/maven/2/commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.pom

[INFO] Unable to find resource 'commons-pool:commons-pool:pom:1.5.3' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.pom

[INFO] Unable to find resource 'commons-pool:commons-pool:pom:1.5.3' in repository osgeo (http://download.osgeo.org/webdav/geotools/)

Downloading: http://repo.opengeo.org/commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.pom

11K downloaded (commons-pool-1.5.3.pom)

Downloading: http://download.java.net/maven/2/org/apache/commons/commons-parent/11/commons-parent-11.pom

[INFO] Unable to find resource 'org.apache.commons:commons-parent:pom:11' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/apache/commons/commons-parent/11/commons-parent-11.pom

[INFO] Unable to find resource 'org.apache.commons:commons-parent:pom:11' in repository osgeo (http://download.osgeo.org/webdav/geotools/)

Downloading: http://repo.opengeo.org/org/apache/commons/commons-parent/11/commons-parent-11.pom

[INFO] Unable to find resource 'org.apache.commons:commons-parent:pom:11' in repository opengeo (http://repo.opengeo.org)

Downloading: http://repo1.maven.org/maven2/org/apache/commons/commons-parent/11/commons-parent-11.pom

Downloading: http://download.java.net/maven/2/org/geotools/gt-metadata/2.6.4/gt-metadata-2.6.4.pom

[INFO] Unable to find resource 'org.geotools:gt-metadata:pom:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-metadata/2.6.4/gt-metadata-2.6.4.pom

4K downloaded (gt-metadata-2.6.4.pom)

Downloading: http://download.java.net/maven/2/org/opengis/geoapi/2.3-M1/geoapi-2.3-M1.pom

[INFO] Unable to find resource 'org.opengis:geoapi:pom:2.3-M1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/opengis/geoapi/2.3-M1/geoapi-2.3-M1.pom

4K downloaded (geoapi-2.3-M1.pom)

Downloading: http://download.java.net/maven/2/org/opengis/parent/2.3-M1/parent-2.3-M1.pom

[INFO] Unable to find resource 'org.opengis:parent:pom:2.3-M1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/opengis/parent/2.3-M1/parent-2.3-M1.pom

18K downloaded (parent-2.3-M1.pom)

Downloading: http://download.java.net/maven/2/net/java/dev/jsr-275/jsr-275/1.0-beta-2/jsr-275-1.0-beta-2.pom

3K downloaded (jsr-275-1.0-beta-2.pom)

Downloading: http://download.java.net/maven/2/org/opengis/geoapi-pending/2.3-M1/geoapi-pending-2.3-M1.pom

[INFO] Unable to find resource 'org.opengis:geoapi-pending:pom:2.3-M1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/opengis/geoapi-pending/2.3-M1/geoapi-pending-2.3-M1.pom

4K downloaded (geoapi-pending-2.3-M1.pom)

Downloading: http://download.java.net/maven/2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.pom

[INFO] Unable to find resource 'commons-beanutils:commons-beanutils:pom:1.7.0' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.pom

357b downloaded (commons-beanutils-1.7.0.pom)

Downloading: http://download.java.net/maven/2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom

[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.0.3' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom

[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.0.3' in repository osgeo (http://download.osgeo.org/webdav/geotools/)

Downloading: http://repo.opengeo.org/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom

866b downloaded (commons-logging-1.0.3.pom)

Downloading: http://download.java.net/maven/2/org/geotools/gt-main/2.6.4/gt-main-2.6.4.jar

[INFO] Unable to find resource 'org.geotools:gt-main:jar:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-main/2.6.4/gt-main-2.6.4.jar

1171K downloaded (gt-main-2.6.4.jar)

Downloading: http://download.java.net/maven/2/org/geotools/gt-api/2.6.4/gt-api-2.6.4.jar

[INFO] Unable to find resource 'org.geotools:gt-api:jar:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-api/2.6.4/gt-api-2.6.4.jar

110K downloaded (gt-api-2.6.4.jar)

Downloading: http://download.java.net/maven/2/com/vividsolutions/jts/1.10/jts-1.10.jar

[INFO] Unable to find resource 'com.vividsolutions:jts:jar:1.10' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//com/vividsolutions/jts/1.10/jts-1.10.jar

585K downloaded (jts-1.10.jar)

Downloading: http://download.java.net/maven/2/org/geotools/gt-referencing/2.6.4/gt-referencing-2.6.4.jar

[INFO] Unable to find resource 'org.geotools:gt-referencing:jar:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-referencing/2.6.4/gt-referencing-2.6.4.jar

1008K downloaded (gt-referencing-2.6.4.jar)

Downloading: http://download.java.net/maven/2/java3d/vecmath/1.3.2/vecmath-1.3.2.jar

[INFO] Unable to find resource 'java3d:vecmath:jar:1.3.2' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//java3d/vecmath/1.3.2/vecmath-1.3.2.jar

243K downloaded (vecmath-1.3.2.jar)

Downloading: http://download.java.net/maven/2/commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.jar

[INFO] Unable to find resource 'commons-pool:commons-pool:jar:1.5.3' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.jar

[INFO] Unable to find resource 'commons-pool:commons-pool:jar:1.5.3' in repository osgeo (http://download.osgeo.org/webdav/geotools/)

Downloading: http://repo.opengeo.org/commons-pool/commons-pool/1.5.3/commons-pool-1.5.3.jar

93K downloaded (commons-pool-1.5.3.jar)

Downloading: http://download.java.net/maven/2/org/geotools/gt-metadata/2.6.4/gt-metadata-2.6.4.jar

[INFO] Unable to find resource 'org.geotools:gt-metadata:jar:2.6.4' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-metadata/2.6.4/gt-metadata-2.6.4.jar

472K downloaded (gt-metadata-2.6.4.jar)

Downloading: http://download.java.net/maven/2/org/opengis/geoapi/2.3-M1/geoapi-2.3-M1.jar

[INFO] Unable to find resource 'org.opengis:geoapi:jar:2.3-M1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/opengis/geoapi/2.3-M1/geoapi-2.3-M1.jar

165K downloaded (geoapi-2.3-M1.jar)

Downloading: http://download.java.net/maven/2/net/java/dev/jsr-275/jsr-275/1.0-beta-2/jsr-275-1.0-beta-2.jar

89K downloaded (jsr-275-1.0-beta-2.jar)

Downloading: http://download.java.net/maven/2/org/opengis/geoapi-pending/2.3-M1/geoapi-pending-2.3-M1.jar

[INFO] Unable to find resource 'org.opengis:geoapi-pending:jar:2.3-M1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//org/opengis/geoapi-pending/2.3-M1/geoapi-pending-2.3-M1.jar

240K downloaded (geoapi-pending-2.3-M1.jar)

Downloading: http://download.java.net/maven/2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar

[INFO] Unable to find resource 'commons-beanutils:commons-beanutils:jar:1.7.0' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar

184K downloaded (commons-beanutils-1.7.0.jar)

Downloading: http://download.java.net/maven/2/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar

[INFO] Unable to find resource 'commons-logging:commons-logging:jar:1.0.3' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)

Downloading: http://download.osgeo.org/webdav/geotools//commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar

[INFO] Unable to find resource 'commons-logging:commons-logging:jar:1.0.3' in repository osgeo (http://download.osgeo.org/webdav/geotools/)

Downloading: http://repo.opengeo.org/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar

30K downloaded (commons-logging-1.0.3.jar)

[INFO] Not writing settings - defaults suffice

[INFO] File C:/GeoTools/example/.project already exists.

Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.

[INFO] Wrote Eclipse project for "example" to C:/GeoTools/example.

[INFO]

Sources for some artifacts are not available.

Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.

List of artifacts without a source archive:

o junit:junit:3.8.1

o org.geotools:gt-main:2.6.4

o org.geotools:gt-api:2.6.4

o com.vividsolutions:jts:1.10

o org.geotools:gt-referencing:2.6.4

o java3d:vecmath:1.3.2

o commons-pool:commons-pool:1.5.3

o org.geotools:gt-metadata:2.6.4

o org.opengis:geoapi:2.3-M1

o net.java.dev.jsr-275:jsr-275:1.0-beta-2

o org.opengis:geoapi-pending:2.3-M1

o jdom:jdom:1.0

o commons-beanutils:commons-beanutils:1.7.0

o commons-logging:commons-logging:1.0.3

Javadoc for some artifacts is not available.

Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.

List of artifacts without a javadoc archive:

o junit:junit:3.8.1

o org.geotools:gt-main:2.6.4

o org.geotools:gt-api:2.6.4

o com.vividsolutions:jts:1.10

o org.geotools:gt-referencing:2.6.4

o java3d:vecmath:1.3.2

o commons-pool:commons-pool:1.5.3

o org.geotools:gt-metadata:2.6.4

o org.opengis:geoapi:2.3-M1

o net.java.dev.jsr-275:jsr-275:1.0-beta-2

o org.opengis:geoapi-pending:2.3-M1

o jdom:jdom:1.0

o commons-beanutils:commons-beanutils:1.7.0

o commons-logging:commons-logging:1.0.3

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 17 minutes 28 seconds

[INFO] Finished at: Tue Mar 08 09:56:36 CST 2011

[INFO] Final Memory: 9M/17M

[INFO] ------------------------------------------------------------------------

=============

2. 刷新工程

这些其他的 Jar 包来自何处?

现在不仅能看到添加进来的两个 Jar包,还看到了许多没有添加的外部 Jar包。

GeoTools分为一系列的模块、插件和扩展。关于 GeoTools如何组装的背景知识,请阅读以下链接:

http://docs.codehaus.org/display/GEOTDOC/02+Meet+the+GeoTools+Library

和自身的 Jar 包一样, GeoTools 利用许多第三方 Jar

遵循我们的“不要在这里创造”的原则,我们转而请教一些几何学,图像文件操作,和记录专家来处理这些操作。因此,尽管我们可能在pom.xml文件中只指定一小部分依赖,比如他们通常依赖于其他的GeoTools和第三方Jar。

我们应该将工作放在空间代码,而不是担心外部Jar包,或者如何使用Maven简化生活。它为你记录了jar包之间的依赖,需要的时候下载必要的jar包到本地系统的cacherepository)。

为了查看这些信息,你可以通过Maven命令行打印出依赖树

Mvn dependency:tree

C:/java/example> mvn dependency:tree

mvn dependency:tree

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'dependency'.

[INFO] ------------------------------------------------------------------------

[INFO] Building example

[INFO] task-segment: [dependency:tree]

[INFO] ------------------------------------------------------------------------

[INFO] [dependency:tree]

[INFO] org.geotools.demo.example:example:jar:1.0-SNAPSHOT

[INFO] +- junit:junit:jar:3.8.1:test

[INFO] +- org.geotools:gt-main:jar:2.6.4:compile

[INFO] | +- org.geotools:gt-api:jar:2.6.4:compile

[INFO] | +- com.vividsolutions:jts:jar:1.9:compile

[INFO] | +- jdom:jdom:jar:1.0:compile

[INFO] | /- commons-beanutils:commons-beanutils:jar:1.7.0:compile

[INFO] | /- commons-logging:commons-logging:jar:1.0.3:compile

[INFO] +- org.geotools:gt-shapefile:jar:2.6.4:compile

[INFO] | /- org.geotools:gt-referencing:jar:2.6.4:compile

[INFO] | +- java3d:vecmath:jar:1.3.1:compile

[INFO] | +- commons-pool:commons-pool:jar:1.3:compile

[INFO] | /- org.geotools:gt-metadata:jar:2.6.4:compile

[INFO] | +- org.opengis:geoapi:jar:2.2-SNAPSHOT:compile

[INFO] | /- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile

[INFO] /- org.geotools:gt-epsg-hsql:jar:2.6.4:compile

[INFO] /- hsqldb:hsqldb:jar:1.8.0.7:compile

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 7 seconds

[INFO] Finished at: Fri Aug 07 20:44:02 EST 2009

[INFO] Final Memory: 12M/22M

[INFO] ------------------------------------------------------------------------

示例代码

如下示例:

http://svn.osgeo.org/geotools/tags/2.6.4/demo/example/src/main/java/org/geotools/demo/Quickstart.java

如果你下载了GeoTools,它已经包含在demo目录下。

应用

我们创建一个应用程序来打开一个sharpfile并通过一个简单的地图显示器显示。代码如下。其中只包含一个类

org.geotools.demo.Quickstart

复制粘贴这段代码到你的IDE作为maven工程的一部分

/* * GeoTools - The Open Source Java GIS Tookit * http://geotools.org * * (C) 2006-2008, Open Source Geospatial Foundation (OSGeo) * * This file is hereby placed into the Public Domain. This means anyone is * free to do whatever they wish with this file. Use it well and enjoy! */ package org.geotools.demo; import java.io.File; import org.geotools.data.CachingFeatureSource; import org.geotools.data.FeatureSource; import org.geotools.data.FileDataStore; import org.geotools.data.FileDataStoreFinder; import org.geotools.map.DefaultMapContext; import org.geotools.map.MapContext; import org.geotools.swing.JMapFrame; import org.geotools.swing.data.JFileDataStoreChooser; /** * GeoTools Quickstart demo application. Prompts the user for a shapefile * and displays its contents on the screen in a map frame * * @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/demo/example/src/main/java/org/geotools/demo/Quickstart.java $ */ public class Quickstart { /** * GeoTools Quickstart demo application. Prompts the user for a shapefile * and displays its contents on the screen in a map frame */ public static void main(String[] args) throws Exception { // display a data store file chooser dialog for shapefiles File file = JFileDataStoreChooser.showOpenFile("shp", null); if (file == null) { return; } FileDataStore store = FileDataStoreFinder.getDataStore(file); FeatureSource featureSource = store.getFeatureSource(); // Create a map context and add our shapefile to it MapContext map = new DefaultMapContext(); map.setTitle("Quickstart"); map.addLayer(featureSource, null); // Now display the map JMapFrame.showMap(map); }

在类结束的位置增加右大括号,然后重新编译程序,在IDE或者通过命令行mvn compile

编译完成就可以运行。同样的,你可以运行它或者在IDE或者命令行。程序会显示一个对话框提示你一个sharpfile并且把它显示在一个简单的地图查看器里面。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值