Hi Michael,

  Thanks for your reply. After reading the tutorial abit more i have
discovered that i need to obtain world_borders.zip" and "world_borders.prj"
however, i can only seem to find world_borders.zip and not the second file,
where i can i get this second file from?

Also after hacking away at my code and clean/building the pom.xml file i get
the dredded read error messages stating:

[ERROR]Transitive dependency resolution for scope: compile has failed for
your project.
[ERROR]Error message: Missing:
[ERROR]----------
[ERROR]1) org.geotools:gt2-epsg-wkt:jar:2.4-SNAPSHOT
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command: 
[ERROR]      mvn install:install-file -DgroupId=org.geotools
-DartifactId=gt2-epsg-wkt -Dversion=2.4-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy the
file there: 
[ERROR]      mvn deploy:deploy-file -DgroupId=org.geotools
-DartifactId=gt2-epsg-wkt -Dversion=2.4-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]  Path to dependency: 
[ERROR]         1) org.geotools.example:gt2-shapefile:jar:2.4-SNAPSHOT
[ERROR]         2) org.geotools:gt2-epsg-wkt:jar:2.4-SNAPSHOT
[ERROR]----------
[ERROR]1 required artifact is missing.
[ERROR]for artifact: 
[ERROR]  org.geotools.example:gt2-shapefile:jar:2.4-SNAPSHOT
[ERROR]from the specified remote repositories:
[ERROR]  central (http://repo1.maven.org/maven2)
[ERROR]Group-Id: org.geotools.example
[ERROR]Artifact-Id: gt2-shapefile
[ERROR]Version: 2.4-SNAPSHOT
[ERROR]From file: C:\MyNBProjects\gt2-shapefile\pom.xml


So i do REALLY need to conver them to JAR files myself? Or is there
something that i have done wrong or missed out(AGAIN :( ). 

One thing that i have noticed on my command prompt is that when i type the
letters mvn i seem to be getting a message stating 
Scanning for projects....
BUILD FAILURE
You must atleast specify one goal etc ........

Now, this might sound somewhat silly to you guys, but do you think that this
error message has anything to do with the error messages that are being
shown on my NB6 output viewer?




Michael Bedward wrote:
> 
> Hi Luong,
> 
> I think the confusion is because the page is written in general terms
> and you are still getting used to translating that into netbeans
> actions.
> 
> To get up and running with this example you can create a new maven
> project in netbeans (like you did with the other example you've been
> looking at).  But, easier still, just hack the example app you already
> have :)
> 
> The shapefile page tells you about two dependencies to add to your
> pom.xml file.  You can edit the file in Netbeans by going to the
> project window; expand the project tree; expand the Project Files item
> at the bottom of the tree; double click on the pom.xml file and it
> will open in the IDE.  Netbeans has smart editing for XML files that
> help you to make sure you've got matching opening and closing tags
> etc. It also suggests relevant items from the maven repository while
> you're editing dependencies.  You'll see what I mean when you start
> using it.
> 
> Now hack your existing example code into that shown on the shapefile page.
> 
> When you build your project maven will download the extra jars that
> you need and put them in your local repository.
> 
> Hope this helps
> 
> Michael
> 
> 2008/6/30 fx5900 <[EMAIL PROTECTED]>:
>>
>> Hi i am doing this shapefile tutorial
>> http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile
>> http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile . I
>> have
>> downloaded the geotools source i. the bin file, src file and doc file but
>> when it tells me to "2. cd into the module you want to use (example
>> shapefile)" but at this point i have not downloaded this shapefile or
>> have
>> this directory. In step 3 it also says to type "mvn dependency:tree " but
>> when i do this at the command prompt i get an error message stating:
>>
>> BUILD ERROR
>> Cannot execute mojo: tree. It requires a project wit an existing POM.XML,
>> but the build is not using one.
>>
>> So i would have to assume that i would need to download this this
>> example.
>> If so where?  Or is there something i am missing?
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Shapefile-tutorial-problem-tp18184505p18184505.html
>> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Shapefile-tutorial-problem-tp18184505p18206718.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to