Hi. Take a project that has "mvn test" is succesfull. Then I run mvn site, with cobertura reporting. I have a compilation problem. In pom I configured an additional test source folder (src/test/functional) with some dependencies (htmlunit).
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <id>add-test-source</id> <phase>generate-test-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>src/test/functional</source> </sources> </configuration> </execution> </executions> </plugin> Here the log starting form the end of tests (i removed complete folder path for privacy). It seems that cobertura does not use dependencies with scope "test" (junit, htmlunit) even if the folder is added, using build-helper-maven-plugin, as a test source folder ===================================== Tests run: 64, Failures: 0, Errors: 0, Skipped: 2 Cobertura: Loaded information on 135 classes. Cobertura: Saved information on 135 classes. [INFO] Preparing surefire-report:report [INFO] [resources:resources {execution: default-resources}] [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 5 resources to contents [INFO] Copying 4 resources [INFO] Copying 40 resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 2 source files to /home/ildella/projects/work/citigroup/newsautomation/target/generated-classes/cobertura [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /home/ildella/.../src/test/functional/presentation/WebFunctionalTest.java:[6,36] package com.gargoylesoftware.htmlunit does not exist [other similar error...] /home/ildella/../src/test/functional/presentation/WebFunctionalTest.java:[15,13] cannot find symbol symbol : class HtmlPage location: class presentation.WebFunctionalTest [other similar error...] /home/ildella/../src/test/functional/presentation/NewsAutomFunctionalTest.java:[6,16] package org.junit does not exist [other similar error...] [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 25 seconds [INFO] Finished at: Sat Nov 07 17:09:40 CET 2009 [INFO] Final Memory: 34M/508M [INFO] ------------------------------------------------------------------------ -- Daniele Dellafiore http://danieledellafiore.net --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org