Hi Gary,

Have you managed to find this page:

http://docs.codehaus.org/display/GEOT/2+Building

And verified you have the necessary dependencies defined here:

http://docs.codehaus.org/display/GEOT/2.2+Dependencies

I apologize if you have already gone through all this, but looking at
your problem below it appears you just done have the jai extensions
properly.

And you are correct, we are lacking information about working with the
library via maven snapshots. Especially for those new to maven.

A while back someone was working on creating a "maven archetype" for
geotools. What this would do is basically allow people to run a single
maven command, and it would create the shell of a maven project that
contains all the necessary configuration to correctly depend on geotools
snapshots. However I am not sure how far that got or what state it is in.

-Justin

Gary Lucas wrote:
> 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
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> !DSPAM:1004,45e73c21172751410093335!
> 


-- 
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
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
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to