From: Anderson v. <and...@gm...> - 2010-12-28 21:03:21
|
Hi I have one maven project with business implementations and another project that contains only unit tests. I configure in the master pom of the project the informations of cobertura plugin. But when i run the command mvn cobertura:cobetura in the root directory of the project, the cobertura plugin not associates the test of the project to the implementations. How May i resolve this? Follow the configurations and the projects structure. Maven builds first the dominio project and after builds the *tests-suite project.* <build> <plugins> .... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.4</version> <executions> <execution> <goals> <goal>clean</goal> <goal>check</goal> </goals> </execution> </executions> </plugin> ... </build> </plugins> *|-- dominio* (Project with business implementations) | |-- src | | |-- main | | | |-- jasperreports | | | |-- java | | | `-- resources | | | `-- META-INF | | `-- test *|-- tests-suite (Project with tests)* | `-- src | `-- test | |-- java | `-- resources Thanks |