Karel:
Thank you for the tips regarding maven. It certainly looks interesting
in the way it works (freeing much of the configuration work), but for
the moment I am giving a try to Ant, so I am following the instructions
on the
http://www.hibernatespatial.org/hibernate-spatial-postgis/dependencies.html page.
All this software environment is new to me, that just used VBA under MS
Office (plus some ArcObjects from ESRI).
While I was configuring the project Build Path in Eclipse, however, I
noticed that the files from Hibernate Spatial for PostGIS presented some
problems:
1. The file 'hibernate-spatial-postgis-1.0-20070430.162253-3.jar' is
refered on the internet page as
'hibernate-spatial-1.0-20070430.162253-3.jar'. Is this OK?
2. This same file has just 384 bytes and does not open with the power
archiver (seems corrupted).
I guess the right combination for a Hibernate Spatial configuration is
then:
Core: 'hibernate-spatial-1.0-20070920.111959-1.jar'
PostGIS: 'hibernate-spatial-postgis-1.0-20070920.111959-1.jar'
Regards,
Joao
-----Original Message-----
From:
[hidden email]
[mailto:
[hidden email]] On
Behalf Of Karel Maesen
Sent: Tuesday, November 20, 2007 10:12 PM
To: Hibernate Spatial Users Discussion
Subject: Re: [hibernatespatial-users] Hibernate Spatial in Eclipse?
Hi,
I'm using Eclipse together with maven for the development of Hibernate
Spatial. I selected maven because of its dependency management features.
Maven uses a pom.xml that describes your whole project. If you specify
the hibernate-spatial and the JTS repositories in your pom.xml, and add
hibernate-spatial-postgis as a dependency, you can just do :
$ mvn eclipse:clean
$ mvn eclipse:eclipse
and this will have maven create all necessary Eclipse metadata for your
project, and download everything you need. (Check the documentation on
the maven Eclipse plugin here: http://
maven.apache.org/plugins/maven-eclipse-plugin/)
The relevant POM elements look like this:
<dependency>
<groupId>org.hibernatespatial</groupId>
<artifactId>hibernate-spatial-postgis</artifactId>
<version>1.0-SNAPSHOT</version> </dependency>
<repository>
<id>hibernatespatial</id>
<name>Hibernatespatial repository</name>
<layout>default</layout>
<url>
http://www.hibernatespatial.org/repository</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>refractions.net</id>
<name>Postgis repository</name>
<layout>default</layout>
<url>
http://lists.refractions.net/m2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
If you want to go this route, be sure to read up on maven. It is a great
tool, but it can be frustrating to learn and come to grips with.
If you stick to ant, you could look here for all dependencies that you
normally need:
http://www.hibernatespatial.org/hibernate-spatial-postgis/dependencies.html
Regards,
Karel Maesen
On 20 Nov 2007, at 17:30, Fonseca Hespanha de Oliveira, Joao da wrote:
> Hi,
>
> I am new to this list, and also to Hibernate... :-) I plan to use the
> Hibernate Spatial extension to Hibernate in my research and I wonder
> if someone here is using it in the Eclipse platform.
> If it is so, I want to know how to configure the classpath and also
> the Ant build file in order to run Hibernate Spatial tutorial example.
> Currently, I have Hibernate Tools, Antlr, postgis and postgressql,
> plus the log4E jars in the Build path (for the Hibernate tutorial).
>
> Regards,
> J.P. Hespanha
> _______________________________________________
> hibernatespatial-users mailing list
>
[hidden email]
>
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/
> hibernatespatial-users
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users