Getting further but failing with a different error:

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[WARNING] POM for 'org.apache.maven.surefire:surefire-junit:pom:2.3' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven.surefire:surefire-junit at /home/mansour/.m2/repository/org/apache/maven/surefire/surefire-junit/2.3/surefire-junit-2.3.pom [INFO] Surefire report directory: /home/mansour/workspace/cocoon-src/trunk/core/cocoon-pipeline/cocoon-pipeline-api/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate and execute Surefire; nested exception is java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:281) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) [INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27 seconds
[INFO] Finished at: Sat Feb 09 16:53:29 AST 2008
[INFO] Final Memory: 35M/63M
[INFO] ------------------------------------------------------------------------





Jason Johnston wrote:
The fix has been checked in. Please update and see if your build succeeds now.


Mansour wrote:
Jason,
Yep, I am getting the same thing.
Thank you for helping.


Jason Johnston wrote:
I was able to reproduce the error with that command. The key was clearing out the org/apache/cocoon area in my local repository.

The problem is that by skipping the tests, maven doesn't produce the test-jar artifacts which are needed later on by other modules' tests. It seems like that shouldn't matter since the test-jar dependencies are declared in test scope, so they shouldn't have to resolve if you're skipping tests. But I guess Maven doesn't handle that properly.

Anyway, if you remove the -Dmaven.test.skip=true you should get further. But currently I still get another error, caused by one of the blocks requiring the rcl webapp wrapper from tools, before those tools are built. I'll bring this up on the dev list and hopefully get it fixed asap.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to