I have spent the entire day trying unsuccessfully to build software
from the GeoTools source distribution in gt2-2.3.0-src.zip and
am beginning to think that there is some critical information that
is known to the developers but not posted on the GeoTools web site.
I am sure that this is just an oversite, and can be easily corrected.
I was wondering if anyone could offer me some suggestions.

As luck would have it, the mailing list archives on SourceForge have
been down all afternoon, so I haven't been able to search them
to see if this is a known problem.  So I apologize if this is an issue
that has been discussed before.

Anyway, my motivation for doing this is that I received a note
from Simone the other day in which he suggested that a bug I was
experiencing might be solved by the 2.3.1 SNAPSHOT.  I figured that
the first step to being able to get the SNAPSHOT was to be able to
run maven to build the 2.3.0 GeoTools API.  Unfortunately, 
I have been completely unable to run maven...  In the past, I have
seen postings in which users were reminded to download the JAI and
JAI-imageio packages before running GeoTools.  Believe me, I've
tried that.  I've tried three different versions of Java (1.5.0_9,
1.5.0_11, and 1.6.0) and multiple versions of the JAI packages.
Since the amount of different things one can try increases
combinatorically, you can imagine that this has taken quite
a bit of time. So I was wondering if there was other
information I should know about.

And this leads me to a second issue.  I have not been able to find
any information on the GeoTools web site that explains how
to download and install the snapshot.  I did find the page 
http://docs.codehaus.org/display/GEOTOOLS/Using+the+SNAPSHOT+releases
but I don't see how the information it presents leads to knowing how
to modify your maven file.  Perhaps the key here is a comment
that the author included on the page "This guide assumes that you
know what Maven is, how it works (mostly) and that you want to
build your own project using maven."   I am new to maven.
On the other hand, it's not like I haven't been poring over the
web pages trying to figure out how to make things work. I honestly
believe that the information needed to proceed just isn't there.

Anyway, here is a bit of the text from the failed "mvn install"
command...  Incidentally, I'm a bit skeptical about that "Nothing to
compile line since even when I deliberately modified code (to change
its modification date), there was no evidence in the that it actually
got compiled.  Of course, I might just be looking in the wrong place.


[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: 
C:\Nimbus\GeoToolsSource_2_3_0\gt2-2.3.0\module\referencing\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: 
org.geotools.referencing.operation.transform.WarpTransformTest; nested 
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial; 
nested exception is org.apache.maven.surefire.testset.TestSetFailedException: 
org.geotools.referencing.operation.transform.WarpTransformTest; nested 
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
org.apache.maven.surefire.testset.TestSetFailedException: 
org.geotools.referencing.operation.transform.WarpTransformTest; nested 
exception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getDeclaredMethods(Unknown Source)
        at junit.framework.TestSuite.<init>(TestSuite.java:73)
        at 
org.geotools.referencing.operation.transform.WarpTransformTest.suite(WarpTransformTest.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:177)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:137)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:244)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:101)
        at 
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------




---
Gary W. Lucas, Senior Software Engineer
Sonalysts, Inc
215 Parkway North
Waterford, CT 06320
(860) 326-3682

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to