[Geoserver-users] difficulties to build coverages tools

Hi i am trying to test the pyramid builder tool, but i have difficulties to
build the tools with maven.

below you can see severals step i have to go through . And at the end don't
know how to go out of the last error message

any help is welcome

Thank's

mvn install:install-file -DgroupId=com.vividsolutions -DartifactId=jts
-Dversion=1.7.1 -Dpackaging=jar -Dfile=D:/Download/lib/jts-1.7.1.jar
mvn install:install-file -DgroupId=edu.oswego -DartifactId=concurrent
-Dversion=1.3.4 -Dpackaging=jar -Dfile=D:/Download/concurrent-1.3.4.jar
mvn install:install-file -DgroupId=com.mockrunner -DartifactId=mockrunner
-Dversion=0.3.6 -Dpackaging=jar -Dfile=D:/Download/mockrunner-0.3.6.jar
mvn install:install-file -DgroupId=oro -DartifactId=oro -Dversion=2.0.8
-Dpackaging=jar -Dfile=D:/Download/oro-2.0.8.jar
mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb
-Dversion=1.8.0.1 -Dpackaging=jar -Dfile=D:/Download/hsqldb-1.8.0.1.jar

clean install -Dmaven.test.skip -e

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

D:\@Donnees\Mairie de
paris\coverage_tool\plugin\epsg-hsql\src\org\geotools\refe
rencing\factory\epsg\HSQLDataSource.java:[40,23] package org.hsqldb.jdbc
does no
t exist
--
View this message in context: http://www.nabble.com/difficulties-to-build-coverages-tools-tf4601643.html#a13138439
Sent from the GeoServer - User mailing list archive at Nabble.com.

Audaire David ha scritto:

Hi i am trying to test the pyramid builder tool, but i have difficulties to
build the tools with maven.

below you can see severals step i have to go through . And at the end don't
know how to go out of the last error message

any help is welcome

Thank's

mvn install:install-file -DgroupId=com.vividsolutions -DartifactId=jts
-Dversion=1.7.1 -Dpackaging=jar -Dfile=D:/Download/lib/jts-1.7.1.jar
mvn install:install-file -DgroupId=edu.oswego -DartifactId=concurrent
-Dversion=1.3.4 -Dpackaging=jar -Dfile=D:/Download/concurrent-1.3.4.jar
mvn install:install-file -DgroupId=com.mockrunner -DartifactId=mockrunner
-Dversion=0.3.6 -Dpackaging=jar -Dfile=D:/Download/mockrunner-0.3.6.jar
mvn install:install-file -DgroupId=oro -DartifactId=oro -Dversion=2.0.8
-Dpackaging=jar -Dfile=D:/Download/oro-2.0.8.jar
mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb
-Dversion=1.8.0.1 -Dpackaging=jar -Dfile=D:/Download/hsqldb-1.8.0.1.jar

I dont' understand why you needed to manually install all of these
files in the repo. Maven should be able to download them by itself...
provided it can reach ibiblio, that is.
If maven blocks for minutes trying to download from ibiblio, then I share your pain. The workaround is to setup some european mirrors
in the maven configuration. In your ${home}/.m2 create a settings.xml file with the following content:

<settings>
   <mirrors>
     <mirror>
       <id>sateh.com</id>
       <url>http://maven.sateh.com/repository&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- The Netherlands, Amsterdam -->
     </mirror>
     <mirror>
       <id>cica.es</id>
       <url>http://ftp.cica.es/mirrors/maven2&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- Spain, Sevilla -->
     </mirror>
   </mirrors>
</settings>

This should help a little. Then try doing a mvn clean install.
Cheers
Andrea

Hi,

I delete and checkout a new version of all the files from
http://svn.geotools.org/geotools/branches/2.3.x/*, i add the settings in the
maven directory. I got no more build failure with missing artefacts thank
you for that...

But i still have the last error about missing package,
do i miss something.

here are the messages

[INFO] Building EPSG Authority Service using HSQL database
[INFO] task-segment: [clean, install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [clean:clean]
[INFO] Deleting directory D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\eps
g-hsql\target
[INFO] Deleting directory D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\eps
g-hsql\target\classes
[INFO] Deleting directory D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\eps
g-hsql\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://www.ibiblio.org/maven2/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.
pom
Downloading:
http://lists.refractions.net/m2/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.
1.pom
Downloading:
http://maven.geotools.fr/repository/hsqldb/hsqldb/1.8.0.1/hsqldb-1.
8.0.1.pom
Downloading:
http://repo1.maven.org/maven2/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.
pom
[INFO] [compiler:compile]
Compiling 3 source files to D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\e
psg-hsql\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[40,23] package org.hsqldb.jdbc
does
not exist

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[75,36] cannot find symbol
symbol: class jdbcDataSource
public class HSQLDataSource extends jdbcDataSource implements DataSource {

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[75,7]
org.geotools.referencing.facto
ry.epsg.HSQLDataSource is not abstract and does not override abstract method
get
LoginTimeout() in javax.sql.DataSource

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[145,12] cannot find symbol
symbol : method setDatabase(java.lang.String)
location: class org.geotools.referencing.factory.epsg.HSQLDataSource

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[154,8] cannot find symbol
symbol : method setUser(java.lang.String)
location: class org.geotools.referencing.factory.epsg.HSQLDataSource

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[286,32] cannot find symbol
symbol : method getDatabase()
location: class org.geotools.referencing.factory.epsg.HSQLDataSource

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[299,32] cannot find symbol
symbol : variable super
location: class org.geotools.referencing.factory.epsg.HSQLDataSource

D:\@Donnees\Mairie de
paris\Pyramid_builder\plugin\epsg-hsql\src\org\geotools\re
ferencing\factory\epsg\HSQLDataSource.java:[377,25] cannot find symbol
symbol : variable super
location: class org.geotools.referencing.factory.epsg.HSQLDataSource

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:560)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
fail
ure
        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:505)
        at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 12 seconds
[INFO] Finished at: Thu Oct 11 11:31:41 CEST 2007
[INFO] Final Memory: 19M/63M
[INFO]
------------------------------------------------------------------------

aaime wrote:

Audaire David ha scritto:

Hi i am trying to test the pyramid builder tool, but i have difficulties
to
build the tools with maven.

below you can see severals step i have to go through . And at the end
don't
know how to go out of the last error message

any help is welcome

Thank's

mvn install:install-file -DgroupId=com.vividsolutions -DartifactId=jts
-Dversion=1.7.1 -Dpackaging=jar -Dfile=D:/Download/lib/jts-1.7.1.jar
mvn install:install-file -DgroupId=edu.oswego -DartifactId=concurrent
-Dversion=1.3.4 -Dpackaging=jar -Dfile=D:/Download/concurrent-1.3.4.jar
mvn install:install-file -DgroupId=com.mockrunner -DartifactId=mockrunner
-Dversion=0.3.6 -Dpackaging=jar -Dfile=D:/Download/mockrunner-0.3.6.jar
mvn install:install-file -DgroupId=oro -DartifactId=oro -Dversion=2.0.8
-Dpackaging=jar -Dfile=D:/Download/oro-2.0.8.jar
mvn install:install-file -DgroupId=hsqldb -DartifactId=hsqldb
-Dversion=1.8.0.1 -Dpackaging=jar -Dfile=D:/Download/hsqldb-1.8.0.1.jar

I dont' understand why you needed to manually install all of these
files in the repo. Maven should be able to download them by itself...
provided it can reach ibiblio, that is.
If maven blocks for minutes trying to download from ibiblio, then I
share your pain. The workaround is to setup some european mirrors
in the maven configuration. In your ${home}/.m2 create a settings.xml
file with the following content:

<settings>
   <mirrors>
     <mirror>
       <id>sateh.com</id>
       <url>http://maven.sateh.com/repository&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- The Netherlands, Amsterdam -->
     </mirror>
     <mirror>
       <id>cica.es</id>
       <url>http://ftp.cica.es/mirrors/maven2&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- Spain, Sevilla -->
     </mirror>
   </mirrors>
</settings>

This should help a little. Then try doing a mvn clean install.
Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/difficulties-to-build-coverages-tools-tf4601643.html#a13152560
Sent from the GeoServer - User mailing list archive at Nabble.com.

Audaire David ha scritto:

Hi,

I delete and checkout a new version of all the files from
http://svn.geotools.org/geotools/branches/2.3.x/*, i add the settings in the
maven directory. I got no more build failure with missing artefacts thank
you for that...

But i still have the last error about missing package,
do i miss something.

It seems maven is failing to download the hsql jar, but I don't
understand why... may it be you have a broken jar in your
local repository?
Try to delete the hsql jar from your local repo, which is
located in ${userHome}/.m2/repository.

Cheers
andrea

Well i was wrong the settings.xml didn't change nothing, but as you point me
on this file, i look the description on maven web site and when i read
Proxies all become clear to me....i always forget it...
Thank you very much for your help my build is full and ok.

if it can help someone else

<settings>
<proxies>
    <proxy>
      <active>true</active>
      <port>the port number</port>
      <host>the host name</host>
    </proxy>
  </proxies>
<mirrors>
     <mirror>
       <id>sateh.com</id>
       <url>http://maven.sateh.com/repository&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- The Netherlands, Amsterdam -->
     </mirror>
     <mirror>
       <id>cica.es</id>
       <url>http://ftp.cica.es/mirrors/maven2&lt;/url&gt;
       <mirrorOf>central</mirrorOf>
       <!-- Spain, Sevilla -->
     </mirror>
   </mirrors>
</settings>

--
View this message in context: http://www.nabble.com/difficulties-to-build-coverages-tools-tf4601643.html#a13156190
Sent from the GeoServer - User mailing list archive at Nabble.com.