Geotools build failed

Description

Hi i try to use geotools with eclipse

I'm using eclipse 3.1.2 with Subclipse Plug-IN 0.9.108.
I have followed this tutorial: http://docs.codehaus.org/display/GEOT/Subclipse+Checkout - http://docs.codehaus.org/display/GEOT/Subclipse+Checkout

I have trouble in executing the gt2eclipse script which is in the classpath as exemple workspace\scripts\bin.

When i'm running this script in the cmd C:\Appli\workspace\scripts\bin>gt2eclipse.bat it returns me this message:

use: java GT2Eclipse
OPTIONS:
-h, --help prints this help list
NOTE:
Please run maven build prior to using this utility
We need it to populate your maven repository.

I've installed maven 2.0.3 and define the environemnt variables but when i execute the command -mvn install in my geotools' folder(like c:\workspace\gt\mvn install -e) it returns me this trace:

------------------------------------------------------------------------ Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(Defa
ultLifecycleExecutor.java:555)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:2 56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
Caused by: org.apache.maven.plugin.CompilationFailureExceptio n: Compilation fail
ure
at org.apache.maven.plugin.AbstractCompilerMojo.execu te(AbstractCompiler
Mojo.java:429)
at org.apache.maven.plugin.CompilerMojo.execute(Compi lerMojo.java:110)
at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
------------------------------------------------------------------------ Total time: 40 seconds
Finished at: Thu Apr 06 09:57:38 CEST 2006
Final Memory: 12M/57M

Thank you in advance

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: jeichar@refractions.net - Time: Thu, 6 Apr 2006 10:13:37 -0500
---------------------
The page was out of date I've updated it with new instructions on how to generate the .classpath and .project files.

Basically you run maven eclipseAll for maven 1 users.

Run mvn eclipse:eclipse for maven 2 users. (run from gt directory)

codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: arxit - Time: Fri, 7 Apr 2006 02:01:23 -0500
---------------------
Thanks for the support, but it still don't work...

I've ran this command : C:\Appli\workspace\gt>mvn eclipse:eclipse -e

and now i've this message:

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.BuildFailureException: Compilation failure

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:555)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

fecycle(DefaultLifecycleExecutor.java:475)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy

cle(DefaultLifecycleExecutor.java:891)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def

aultLifecycleExecutor.java:734)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:505)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone

Goal(DefaultLifecycleExecutor.java:488)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:458)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:273)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        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:429)

        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

        ... 20 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 25 seconds

[INFO] Finished at: Fri Apr 07 08:53:53 CEST 2006

[INFO] Final Memory: 12M/47M

[INFO] ------------------------------------------------------------------------

codehaus
April 10, 2015, 3:16 PM

CodeHaus Comment From: arxit - Time: Mon, 10 Apr 2006 06:20:39 -0500
---------------------
After doing all the step in this guide on another PC with the same specifications : <a href="http://docs.codehaus.org/display/GEOT/Eclipse+GeoTools+Quickstart,">http://docs.codehaus.org/display/GEOT/Eclipse+GeoTools+Quickstart,</a> i&#39;m always blocked at the maven full build step but i&#39;ve a different error message:

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

C:\AllData\Coverages\gt\module\coverage\src\org\geotools\coverage\processing\ope

ration\ScaledGridCoverage2D.java:[18,40] cannot resolve symbol

symbol : class CannotScaleException

location: package processing

C:\AllData\Coverages\gt\module\coverage\src\org\geotools\coverage\processing\ope

ration\Scale.java:[13,40] cannot resolve symbol

symbol : class CannotScaleException

location: package processing

C:\AllData\Coverages\gt\module\coverage\src\org\geotools\coverage\processing\ope

ration\Scale.java:[141,34] cannot resolve symbol

symbol : class CannotScaleException

location: class org.geotools.coverage.processing.operation.Scale

[INFO] ------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.BuildFailureException: Compilation failure

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:555)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

fecycle(DefaultLifecycleExecutor.java:475)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau

ltLifecycleExecutor.java:454)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan

dleFailures(DefaultLifecycleExecutor.java:306)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen

ts(DefaultLifecycleExecutor.java:273)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi

fecycleExecutor.java:140)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at java.lang.reflect.Method.invoke(Method.java:324)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail

ure

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler

Mojo.java:429)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

nManager.java:412)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:534)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;... 16 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 12 seconds

[INFO] Finished at: Mon Apr 10 13:12:03 CEST 2006

[INFO] Final Memory: 14M/39M

[INFO] ------------------------------------------------------------------------

Assignee

Unassigned

Reporter

codehaus

Triage

None

Priority

Highest
Configure