Hi Alessandro,

I use NetBeans for GeoTools development.  The errors that you describe
should disappear when you build the project and maven downloads the
various dependencies for you.

The support for Maven projects in NetBeans is actually very good, but
for the moment I recommend that you set the preferences to use an
external Maven 2 version (e.g. I'm using 2.2.1) rather than the Maven
3.x bundled with the IDE.

Michael

On 6 August 2011 03:47, Alessandro Ferrucci
<[email protected]> wrote:
> Hello,
> This may be a Netbeans mailing list question but I'll try my luck here
> because I see that perhaps there are "some" core geotools developers using
> netbeans?
>
> I have checked out the entire 2.7.x geotools branch and imported it into
> netbeans (just the "modules" Maven project).  I see the that there are lots
> of 'red' where it can't make out Class references.  For example JTS.
> When I click on one of the red markers and do "Search dependency at maven
> repositories" then I can select a version of JTS to include (there are more
> than one) and it fixes it.
>
> I think this is caused by the fact that
>
> <groupId>com.vividsolutions</groupId>
>       <artifactId>jts</artifactId>
>
> There is no version number specified and I see there's a comment
>
> <!-- The version number is specified in the parent POM. -->
>
> I see that the root POM specifies 1.11 for JTS, so why can Netbeans not see
> this?
>
> I will give a more concrete example of where a module cannot resolve Class
> references in other Geotools modules.
>
> For example MySQL  DataStore cannot find
> org.geotools.data.DataAccessFactory.Param
>
> But I can definitely see that the project that includes this file, is part
> of my projects I have in netbeans...why can netbeans not find this?
>
> Thanks,
> Alessandro Ferrucci
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to