From: Gary L. <gw...@so...> - 2007-03-01 20:41:36
|
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,=20 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=5F9, 1.5.0=5F11, 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=20 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=5F2=5F3=5F0\g= t2-2.3.0\module\referencing\target\surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: org.geotool= s.referencing.operation.transform.WarpTransformTest; nested exception is= java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial; nested = exception is org.apache.maven.surefire.testset.TestSetFailedException: o= rg.geotools.referencing.operation.transform.WarpTransformTest; nested ex= ception is java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomia= l org.apache.maven.surefire.testset.TestSetFailedException: org.geotools.r= eferencing.operation.transform.WarpTransformTest; nested exception is ja= va.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial java.lang.NoClassDefFoundError: javax/media/jai/WarpPolynomial =09at java.lang.Class.getDeclaredMethods0(Native Method) =09at java.lang.Class.privateGetDeclaredMethods(Unknown Source) =09at java.lang.Class.getDeclaredMethods(Unknown Source) =09at junit.framework.TestSuite.<init>(TestSuite.java:73) =09at org.geotools.referencing.operation.transform.WarpTransformTest.sui= te(WarpTransformTest.java:69) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) =09at java.lang.reflect.Method.invoke(Unknown Source) =09at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSui= teMethod(JUnitTestSet.java:177) =09at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(J= UnitTestSet.java:137) =09at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTes= tSet.java:244) =09at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateT= estSets(AbstractDirectoryTestSuite.java:101) =09at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Suref= ire.java:147) =09at org.apache.maven.surefire.Surefire.run(Surefire.java:108) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) =09at java.lang.reflect.Method.invoke(Unknown Source) =09at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess= (SurefireBooter.java:225) =09at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBoote= r.java:747) [INFO] -----------------------------------------------------------------= ------- [ERROR] BUILD FAILURE [INFO] ------------------ --- Gary W. Lucas, Senior Software Engineer Sonalysts, Inc 215 Parkway North Waterford, CT 06320 (860) 326-3682 |