Cory Horner a écrit :
Maven 2.0.4 is due out in a few days, and it seems to solve our issues
with surefire (silent failures). Snapshots are available:
http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/
I tend to believe that our current trouble with Maven 2 may be a Maven bug (or if it is a mistake of
mine, at least it would be nice if Maven error message were improved). My hope was that Maven 2.0.3
would fix the bug, and it didn't happen. If Maven 2.0.4 fix it, it would be very nice... I tend to
believe that a Maven issue is more likely than a dependency issue, because in such case I would
expect Maven to fails at compile time or at test execution time (not a silent failure before tests
are executed).
I've added 2 dependencies to module/main/pom.xml, but still have 2
exceptions hanging things up in main:
java.lang.ClassCastException
at org.geotools.data.DataTestCase.dataSetUp(DataTestCase.java:119)
In this case, roadType.create(...) is returning null, and the cast to
SimpleFeature doesn't like it. The odd part, is that running this as a
singular test "mvn -Dtest=FeatureTypeTest test" from /module/main passes
without a hitch.
I noticed this exception a while ago and didn't had the time to fix it. My current bet is that this
test case try to load (directly or indirectly) a file from the root package using Class.getResource
or something equivalent. It sound like that loading resources at the root package is not allowed in
Maven 2, so we may need to finish to move all test data to test-data subdirectory. I already moved
some of them (mostly the shapefile), but didn't finished.
Thanks for all yours Maven 2 effort!
Martin.
-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel