Maven 2.0.3 is out, but unfortunately it doesn't address the issues that
some of us have been having. I've been experimenting with a bleeding
edge version of the maven plugins and have been getting good results
(the same could probably be achieved by using an older version of the
surefire plugin, which is likely why the early adopters have their
systems working).
I've tested on Linux and made it a fair ways... also on Windows some
success -- although I think I understand the problem.
---LINUX---
On Linux, using mvn 2.0.3 with maven-plugins r389628:
using "mvn -Djava.awt.headless=true install" (since i'm SSH-ing into my
linux box at home, and don't have xserver set up yet)
I managed to successfully build, after disabling these unit tests:
ext/widgets-swing
plugin/mif
In the repo, tests are currently disabled for
module/main
ext/pickle
plugin/mysql
plugin/gtopo30
plugin/postgis
plugin/wfs
on my Linux system plugin/postgis and plugin/wfs passed just fine on my
system... which leaves:
module/main <-- ouch!
ext/pickle
ext/widgets-swing
plugin/mif
plugin/mysql
plugin/gtopo30
---WIN32---
Now, on Windows, we've got JAI issues...comparing the debug output
between linux and win32, it looks like maven 2 is running the wrong java
on my system -- i'm running cygwin, and my PATH variable shows
/cygdrive/c/WINDOWS/system32 before
/cygdrive/c/java/j2sdk1.4.2_08/bin.... maven 2 seems to be just calling
"java" from the command line, rather than using the "JAVA_HOME"
variable, which correctly points to the java 1.4 sdk with JAI
installed. A workaround is to move j2sdk1.4.2 before system32 in the
PATH variable, so the correct java is run -- but we need to figure out
how to use JAVA_HOME with m2.
We've just got test failures to deal with now... /module/main passes
all tests under maven 1... but fails differently under maven 2 depending
on your OS:
---TESTING MAIN---
cd module/main
mvn -Dallow.test.skip=false install
linux:
[surefire] org.geotools.data.jdbc.JDBCDataStoreTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLStreamingParserStressTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLParserTest <<<<<<<< FAILURE !!
[surefire] org.geotools.feature.FeatureCollectionTest <<<<<<<< FAILURE !!
[surefire] org.geotools.feature.FeatureTypeTest <<<<<<<< FAILURE !!
[surefire] org.geotools.feature.visitor.VisitorCalculationTest <<<<<<<<
FAILURE !!
win32:
[surefire] org.geotools.data.jdbc.JDBCDataStoreTest <<<<<<<< FAILURE !!
[surefire] org.geotools.feature.FeatureTypeTest <<<<<<<< FAILURE !!
[surefire] org.geotools.feature.FeatureWrappedComplexTest <<<<<<<<
FAILURE !!
[surefire] org.geotools.feature.visitor.VisitorCalculationTest <<<<<<<<
FAILURE !!
[surefire] org.geotools.filter.AreaFunctionTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.AttributeTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.BetweenTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.DOMParserTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.ExpressionBuilderTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.ExpressionTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.FilterAttributeExtractorTest <<<<<<<<
FAILURE !!
[surefire] org.geotools.filter.FilterEqualsTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.FilterTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.function.ClassificationFunctionTest
<<<<<<<< FAILURE !!
[surefire] org.geotools.filter.function.Collection_FunctionsTest
<<<<<<<< FAILURE !!
[surefire] org.geotools.filter.function.EqualIntervalFunctionTest
<<<<<<<< FAILURE !!
[surefire] org.geotools.filter.function.QuantileFunctionTest <<<<<<<<
FAILURE !!
[surefire] org.geotools.filter.function.UniqueIntervalFunctionTest
<<<<<<<< FAILURE !!
[surefire] org.geotools.filter.MathTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.ParserTest <<<<<<<< FAILURE !!
[surefire] org.geotools.filter.SQLUnpackerTest <<<<<<<< FAILURE !!
[surefire] org.geotools.map.MapContextTest <<<<<<<< FAILURE !!
[surefire] org.geotools.map.MapLayerTest <<<<<<<< FAILURE !!
[surefire] org.geotools.styling.StyleAttributeExtractorTest <<<<<<<<
FAILURE !!
[surefire] org.geotools.styling.TextSymbolTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLInheritanceTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLParser2Test <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLParserTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.GMLStreamingParserStressTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.ogc.ExpresionEncodeTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.SchemaMergeTest <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.SchemaParser2Test <<<<<<<< FAILURE !!
[surefire] org.geotools.xml.SchemaParserTest <<<<<<<< FAILURE !!
Something funky is going on in JDBCDataStoreTest...
java.lang.NoClassDefFoundError:
org/apache/oro/text/regex/MalformedPatternException
at
com.mockrunner.jdbc.SQLStatementMatcher.doSimpleMatch(SQLStatementMatcher.java:150)
at
com.mockrunner.jdbc.SQLStatementMatcher.doStringsMatch(SQLStatementMatcher.java:138)
at
com.mockrunner.jdbc.SQLStatementMatcher.getMatchingObjects(SQLStatementMatcher.java:74)
at
com.mockrunner.jdbc.AbstractResultSetHandler.getResultSet(AbstractResultSetHandler.java:294)
at
com.mockrunner.mock.jdbc.MockStatement.executeQuery(MockStatement.java:111)
at
org.geotools.data.jdbc.JDBC1DataStore.executeQuery(JDBC1DataStore.java:897)
at
org.geotools.data.jdbc.JDBC1DataStore.getFeatureReader(JDBC1DataStore.java:656)
at
org.geotools.data.jdbc.JDBCDataStoreTest.testGetFeatureReader(JDBCDataStoreTest.java:105)
Perhaps we're just missing a few dependencies? any thoughts?
Cheers,
Cory.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel