[Geoserver-devel] [1.5.x] - Unable to compile Geoserver

Hi,

I try, without succees, since 1 week to compile GeoServer 1.5.X

  1. First, i install all the prerequisite for geotools.
    JDK 1.4.2_13 ( I uninstall all other version of jdk or jre )
    JAI 1.1.3
    JAI ImageI/O 1.1
    maven 2.0.5

  2. I checkout the 2.3.X version of Geotools.
    mvn compile works without problems.
    But, mvn install failed with this log ( just the end of the log file )

Results :
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar: .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT-sources.jar
[INFO] [gt2-jar-collector:collect {execution: default}]
[INFO] Copied 1 JAR to parent directory.
[INFO] [install:install]
[INFO] Installing .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT.jar to .m2\repository\org\geotools\gt2-hsql\2.3.2-SNAPSHOT\gt2-hsql-2.3.2-SNAPSHOT.jar
[INFO] Installing .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT-sources.jar to .m2\repository\org\geotools\gt2-hsql\2.3.2-SNAPSHOT\gt2-hsql-2.3.2-SNAPSHOT-sources.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building WorldImage datasource module
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 5 source files to .\2.3.x\plugin\image\target\test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

.\2.3.x\plugin\image\test\org\geotools\gce\image\WorldImageReaderTest.java:[29,34] cannot resolve symbol
symbol : class s
location: package internal

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 minutes 21 seconds
[INFO] Finished at: Mon May 28 11:00:57 CEST 2007
[INFO] Final Memory: 19M/37M
[INFO] ------------------------------------------------------------------------

  1. When i try to build geoserver 1.5.X, the build failed for mission required artifact in geotools
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

Missing:

  1. org.geotools:gt2-demo-property:jar:2.3.2-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId= org.geotools -DartifactId=gt2-demo-property
-Dversion=2.3.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:

  1. org.geoserver:data:jar:1.5.1-SNAPSHOT
  2. org.geotools:gt2-demo-property:jar:2.3.2-SNAPSHOT

1 required artifact is missing.

for artifact:
org.geoserver:data:jar:1.5.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2 ),
ibiblio (http://www.ibiblio.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace ( http://maven.espace.ird.nc),
mortbay (http://www.mortbay.org/maven2/release),
geotools (http://maven.geotools.fr/repository/ )

NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Mon May 28 11:31:31 CEST 2007
[INFO] Final Memory: 9M/19M
[INFO] ------------------------------------------------------------------------

Is there an issue to successfull build and use geoserver 1.5.X ?

Thanks for help

Philippe

Philippe EUGENE ha scritto:

Hi,

I try, without succees, since 1 week to compile GeoServer 1.5.X

1) First, i install all the prerequisite for geotools.
JDK 1.4.2_13 ( I uninstall all other version of jdk or jre )
JAI 1.1.3
JAI ImageI/O 1.1
maven 2.0.5

2) I checkout the 2.3.X version of Geotools.
mvn compile works without problems.
But, mvn install failed with this log ( just the end of the log file )

Results :
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar: .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT-sources.jar
[INFO] [gt2-jar-collector:collect {execution: default}]
[INFO] Copied 1 JAR to parent directory.
[INFO] [install:install]
[INFO] Installing .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT.jar to .m2\repository\org\geotools\gt2-hsql\2.3.2-SNAPSHOT\gt2-hsql-2.3.2-SNAPSHOT.jar

[INFO] Installing .\2.3.x\plugin\hsql\target\gt2-hsql-2.3.2-SNAPSHOT-sources.jar to .m2\repository\org\geotools\gt2-hsql\2.3.2-SNAPSHOT\gt2-hsql-2.3.2-SNAPSHOT-sources.jar
[INFO] ----------------------------------------------------------------------------

[INFO] Building WorldImage datasource module
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 5 source files to .\2.3.x\plugin\image\target\test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

.\2.3.x\plugin\image\test\org\geotools\gce\image\WorldImageReaderTest.java:[29,34] cannot resolve symbol
symbol : class s
location: package internal

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 minutes 21 seconds
[INFO] Finished at: Mon May 28 11:00:57 CEST 2007
[INFO] Final Memory: 19M/37M
[INFO] ------------------------------------------------------------------------

This is a build breakage I just fixed. Can you updated and try again?
Cheers
Andrea