[GeoNetwork-users] Clean source, compiler errors [Sec=Unclassified]

Folks,

I downloaded trunk with fresh JDK 1.6, maven 3.0.3 and ant 1.8.2. I tried a maven build however it failed with this:

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ geonetwork-main ---
[INFO] Compiling 443 source files to D:\devel\geonetwork-trunk\trunk\web\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \devel\geonetwork-trunk\trunk\web\src\main\java\org\fao\geonet\kernel\ThesaurusManagerSesame.java:[35,25] package org.openrdf.sesame does not exist

Seems some dependancies are missing from the pom?

I've tried a few times with fresh source, also with JDK 1.5 (fails because java.xml.stream does not exist in 1.5).

Can anyone tell me how to get a clean build, or even better, update the pom to include the openrdf resources?

Regards,

Miles Jordan, Systems Analyst
Australian Antarctic Data Centre | Australian Antarctic Division
Dept. for Sustainability, Environment, Water, Population and Communities
http://data.aad.gov.au/>

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

Hi Miles,

Terry Rankine also ran into this - looks like later versions of jdk1.6 (1.6.0_24 onwards as far as I know) won't compile GeoNetwork without the sesame dependencies (although earlier versions do!). I've just committed Terry's fix to include these dependencies in the pom files.

The 1.5 compilation failure raises the issue of whether we should be supporting 1.5 - my understanding is that 1.5.0_22 was the last public update and that it dates from Sept 2009. Is anyone still using 1.5 in a production environment nowadays?

Cheers,
Simon
________________________________________
From: Miles Jordan [Miles.Jordan@anonymised.com]
Sent: Tuesday, 14 June 2011 2:48 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Clean source, compiler errors [Sec=Unclassified]

Folks,

I downloaded trunk with fresh JDK 1.6, maven 3.0.3 and ant 1.8.2. I tried a maven build however it failed with this:

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ geonetwork-main ---
[INFO] Compiling 443 source files to D:\devel\geonetwork-trunk\trunk\web\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \devel\geonetwork-trunk\trunk\web\src\main\java\org\fao\geonet\kernel\ThesaurusManagerSesame.java:[35,25] package org.openrdf.sesame does not exist

Seems some dependancies are missing from the pom?

I've tried a few times with fresh source, also with JDK 1.5 (fails because java.xml.stream does not exist in 1.5).

Can anyone tell me how to get a clean build, or even better, update the pom to include the openrdf resources?

Regards,

Miles Jordan, Systems Analyst
Australian Antarctic Data Centre | Australian Antarctic Division
Dept. for Sustainability, Environment, Water, Population and Communities
AADC;

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

Thanks Simon & Terry, it's building for me now.

Cheers,

Miles

-----Original Message-----
From: Simon.Pigot@anonymised.com [mailto:Simon.Pigot@anonymised.com]
Sent: Wednesday, 15 June 2011 12:10 PM
To: Miles Jordan; geonetwork-users@lists.sourceforge.net
Cc: Terry.Rankine@anonymised.com
Subject: RE: [GeoNetwork-users] Clean source, compiler errors [Sec=Unclassified]

Hi Miles,

Terry Rankine also ran into this - looks like later versions of jdk1.6 (1.6.0_24 onwards as far as I know) won't compile GeoNetwork without the sesame dependencies (although earlier versions do!). I've just committed Terry's fix to include these dependencies in the pom files.

The 1.5 compilation failure raises the issue of whether we should be supporting 1.5 - my understanding is that 1.5.0_22 was the last public update and that it dates from Sept 2009. Is anyone still using 1.5 in a production environment nowadays?

Cheers,
Simon
________________________________________
From: Miles Jordan [Miles.Jordan@anonymised.com]
Sent: Tuesday, 14 June 2011 2:48 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Clean source, compiler errors [Sec=Unclassified]

Folks,

I downloaded trunk with fresh JDK 1.6, maven 3.0.3 and ant 1.8.2. I tried a maven build however it failed with this:

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ geonetwork-main ---
[INFO] Compiling 443 source files to D:\devel\geonetwork-trunk\trunk\web\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \devel\geonetwork-trunk\trunk\web\src\main\java\org\fao\geonet\kernel\ThesaurusManagerSesame.java:[35,25] package org.openrdf.sesame does not exist

Seems some dependancies are missing from the pom?

I've tried a few times with fresh source, also with JDK 1.5 (fails because java.xml.stream does not exist in 1.5).

Can anyone tell me how to get a clean build, or even better, update the pom to include the openrdf resources?

Regards,

Miles Jordan, Systems Analyst
Australian Antarctic Data Centre | Australian Antarctic Division
Dept. for Sustainability, Environment, Water, Population and Communities
http://data.aad.gov.au/>

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________