Jody Garnett wrote:
Is this the bug you guys are talking about? I am very scared about
running without test cases - I see they are turned off for 2.2.x :-(
So as I understand thing we cannot release at this time:
- maven 1 is not supported?
- maven 2 does not run tests?
Is there any way we can just turn off tests for effected module?
I believe this is the case, but Windows has issues with JAI on some
systems, and some tests that pass in maven 1 fail in maven 2.
C:\java\geotools\trunk\module\referencing>mvn install
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Referencing services
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 397 source files to
C:\java\geotools\trunk\module\referencing\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 45 source files to
C:\java\geotools\trunk\module\referencing\target\test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir:
C:\java\geotools\trunk\module\referencing\target/surefire-reports
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] There are some test failure.
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Tue Mar 28 00:16:04 CAT 2006
[INFO] Final Memory: 5M/38M
[INFO]
----------------------------------------------------------------------------
On Windows, that is the bug...
Running as "mvn -X install" will give some more useful errors (debug
mode)... -e is good, but -X is better.
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] There are some test failure.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: There are some
test failure.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
...
Unfortunately that doesn't get us too far, as the maven surefire plugin
just eats the error message (both maven 2.0.2 and 2.0.3 exhibit this
behaviour, as they use surefire-1.5.2). To get some real errors, i've
built a development version of the maven plugins, which includes
surefire-1.5.3:
(my maven checkout from yesterday builds, but today's doesn't -- so i've
used revision 389628)
svn co -r 389628 http://svn.apache.org/repos/asf/maven/plugins/trunk
cd trunk
mvn install
back in geotools 2.2.x:
remove the <pluginManagement> section from root pom.xml (this allows
maven to use the new maven 2.3-SNAPSHOT plugins)
mvn -Dmaven.test.skip=true -Dallow.test.skip=true install
This will allow for a complete build without tests, which isn't good
enough yet... you can run "mvn install" and watch the errors fly
though... next e-mail...
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