|
15 | 15 | <junit.version>4.12</junit.version> |
16 | 16 | <compiler.version>3.0</compiler.version> |
17 | 17 | <coveralls.version>3.1.0</coveralls.version> |
18 | | - <cobertura.version>2.6</cobertura.version> |
| 18 | + <jacoco.version>0.7.2.201409121644</jacoco.version> |
19 | 19 | </properties> |
20 | 20 | <modules> |
21 | 21 | <module>abstract-factory</module> |
|
88 | 88 | </dependency> |
89 | 89 | </dependencies> |
90 | 90 | </dependencyManagement> |
| 91 | + |
91 | 92 |
|
92 | 93 | <build> |
| 94 | + <pluginManagement> |
| 95 | + <plugins> |
| 96 | + <!-- |
| 97 | + This plugin's configuration is used to store Eclipse m2e settings only. |
| 98 | + It has no influence on the Maven build itself. |
| 99 | + TODO: Remove when the m2e plugin can correctly bind to Maven lifecycle |
| 100 | + --> |
| 101 | + <plugin> |
| 102 | + <groupId>org.eclipse.m2e</groupId> |
| 103 | + <artifactId>lifecycle-mapping</artifactId> |
| 104 | + <version>1.0.0</version> |
| 105 | + <configuration> |
| 106 | + <lifecycleMappingMetadata> |
| 107 | + <pluginExecutions> |
| 108 | + <pluginExecution> |
| 109 | + <pluginExecutionFilter> |
| 110 | + <groupId>org.jacoco</groupId> |
| 111 | + <artifactId> |
| 112 | + jacoco-maven-plugin |
| 113 | + </artifactId> |
| 114 | + <versionRange> |
| 115 | + [0.6.2,) |
| 116 | + </versionRange> |
| 117 | + <goals> |
| 118 | + <goal>prepare-agent</goal> |
| 119 | + </goals> |
| 120 | + </pluginExecutionFilter> |
| 121 | + <action> |
| 122 | + <ignore /> |
| 123 | + </action> |
| 124 | + </pluginExecution> |
| 125 | + </pluginExecutions> |
| 126 | + </lifecycleMappingMetadata> |
| 127 | + </configuration> |
| 128 | + </plugin> |
| 129 | + </plugins> |
| 130 | + </pluginManagement> |
| 131 | + |
93 | 132 | <plugins> |
94 | 133 | <!-- Tell maven to compile using Java 8 --> |
95 | 134 | <plugin> |
|
110 | 149 | </configuration> |
111 | 150 | </plugin> |
112 | 151 | <plugin> |
113 | | - <groupId>org.codehaus.mojo</groupId> |
114 | | - <artifactId>cobertura-maven-plugin</artifactId> |
115 | | - <version>${cobertura.version}</version> |
116 | | - <configuration> |
117 | | - <format>xml</format> |
118 | | - <maxmem>256m</maxmem> |
119 | | - <aggregate>true</aggregate> |
120 | | - </configuration> |
| 152 | + <groupId>org.jacoco</groupId> |
| 153 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 154 | + <version>${jacoco.version}</version> |
| 155 | + <executions> |
| 156 | + <execution> |
| 157 | + <id>prepare-agent</id> |
| 158 | + <goals> |
| 159 | + <goal>prepare-agent</goal> |
| 160 | + </goals> |
| 161 | + </execution> |
| 162 | + </executions> |
121 | 163 | </plugin> |
122 | 164 | </plugins> |
123 | 165 | </build> |
|
0 commit comments