Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Creating a geotools project using Maven in NetBeans 8.02  RSS feed

Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a geotools project using Maven in NetBeans 8.02. I am following the guidelines provided in the tutorial:
QuickStart Application

I am able to run "Hello World" project:
It downloaded several things and then printed "Hello World" like:

Downloaded: (10 KB at 11.7 KB/sec)
Downloaded: (14 KB at 15.7 KB/sec)
Downloaded: (218 KB at 173.0 KB/sec)
Downloaded: (52 KB at 54.0 KB/sec)
Hello World!

The step 1 says that:
<Create the org.geotools.tutorial.Quickstart class using your IDE.>

and their pom.xml has following line:


but pom.xml on my computer has following stuff



which shows that groupId and artifactId are different.
I ran the "Hello World" program using com.mycompany groupId.

However now I am trying to import the packages as in the tutorial:

using the import statements:

I am getting the error:
package does not exists.

I have following package statement:

package com.mycompany.mavenproject1;

Some body please guide me.

Ranch Hand
Posts: 207
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, well the two packages you listed are different so it makes sense it says it doesn't exist.  The differences in the pom you wrote like artifactId and blah blah are for your project and don't affect what dependencies you put in there as far as I know.

These are different packages...................

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!