1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<profile>
<id>cobertura</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/../module1/src/main/java</source>
<source>${basedir}/../module2/src/main/java</source>
<source>${basedir}/../module3/src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>groupId</groupId>
<artifactId>module1</artifactId>
<version>1.0-SNAPSHOT</version>
<classifier>cobertura</classifier>
</dependency>
<dependency>
<groupId>groupId</groupId>
<artifactId>module2</artifactId>
<version>1.0-SNAPSHOT</version>
<classifier>cobertura</classifier>
</dependency>
<dependency>
<groupId>groupId</groupId>
<artifactId>module3</artifactId>
<version>1.0-SNAPSHOT</version>
<classifier>cobertura</classifier>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile> |
Partager