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
