125125 </dependencies >
126126 <build >
127127 <plugins >
128- <plugin >
129- <groupId >org.apache.maven.plugins</groupId >
130- <artifactId >maven-surefire-plugin</artifactId >
131- <version >${surefire.and.failsafe.plugin.version} </version >
132- <configuration >
133- <!-- Set the highest log level for coverage testing, so that we have
134- a chance to reach branches in the logging lambdas too. -->
135- <argLine >-Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} </argLine >
136- </configuration >
137- </plugin >
138128 <plugin >
139129 <groupId >org.jacoco</groupId >
140130 <artifactId >jacoco-maven-plugin</artifactId >
168158 </execution >
169159 </executions >
170160 </plugin >
161+ <plugin >
162+ <groupId >org.apache.maven.plugins</groupId >
163+ <artifactId >maven-surefire-plugin</artifactId >
164+ <version >${surefire.and.failsafe.plugin.version} </version >
165+ <configuration >
166+ <!-- Set the highest log level for coverage testing, so that we have
167+ a chance to reach branches in the logging lambdas too. -->
168+ <argLine >-Djava.util.logging.config.file=src/test/resources/logging.properties ${argLine} </argLine >
169+ </configuration >
170+ </plugin >
171171 <plugin >
172172 <groupId >org.apache.maven.plugins</groupId >
173173 <artifactId >maven-compiler-plugin</artifactId >
220220 </executions >
221221 </plugin >
222222 <plugin >
223- <groupId >org.sonatype.ossindex. maven</groupId >
224- <artifactId >ossindex- maven-plugin</artifactId >
225- <version >3.1.0 </version >
223+ <groupId >org.apache. maven.plugins </groupId >
224+ <artifactId >maven-enforcer -plugin</artifactId >
225+ <version >${surefire.and.failsafe.plugin.version} </version >
226226 <executions >
227227 <execution >
228- <phase >package</ phase >
228+ <id >enforce-maven</ id >
229229 <goals >
230- <goal >audit </goal >
230+ <goal >enforce </goal >
231231 </goals >
232+ <configuration >
233+ <rules >
234+ <requireMavenVersion >
235+ <version >3.3.9</version >
236+ </requireMavenVersion >
237+ </rules >
238+ </configuration >
232239 </execution >
233240 </executions >
234- <configuration >
235- <excludeVulnerabilityIds >
236- <!-- Ignores CVE-2020-15250, because we use Java 11 and junit 4.13.1
237- which contains a fix: https://ossindex.sonatype.org/vuln/7ea56ad4-8a8b-4e51-8ed9-5aad83d8efb1 -->
238- <exclude >7ea56ad4-8a8b-4e51-8ed9-5aad83d8efb1</exclude >
239- </excludeVulnerabilityIds >
240- </configuration >
241241 </plugin >
242242 <plugin >
243243 <groupId >org.codehaus.mojo</groupId >
256256 <rulesUri >file:///${project.basedir} /versionsMavenPluginRules.xml</rulesUri >
257257 </configuration >
258258 </plugin >
259- <plugin >
260- <groupId >org.apache.maven.plugins</groupId >
261- <artifactId >maven-enforcer-plugin</artifactId >
262- <version >3.0.0-M3</version >
263- <executions >
264- <execution >
265- <id >enforce-maven</id >
266- <goals >
267- <goal >enforce</goal >
268- </goals >
269- <configuration >
270- <rules >
271- <requireMavenVersion >
272- <version >3.3.9</version >
273- </requireMavenVersion >
274- </rules >
275- </configuration >
276- </execution >
277- </executions >
278- </plugin >
279259 <plugin >
280260 <groupId >com.exasol</groupId >
281261 <artifactId >artifact-reference-checker-maven-plugin</artifactId >
311291 </modules >
312292 </configuration >
313293 </plugin >
294+ <plugin >
295+ <groupId >org.sonatype.ossindex.maven</groupId >
296+ <artifactId >ossindex-maven-plugin</artifactId >
297+ <version >3.1.0</version >
298+ <executions >
299+ <execution >
300+ <phase >package</phase >
301+ <goals >
302+ <goal >audit</goal >
303+ </goals >
304+ </execution >
305+ </executions >
306+ <configuration >
307+ <excludeVulnerabilityIds >
308+ <!-- Ignores CVE-2020-15250, because we use Java 11 and junit 4.13.1
309+ which contains a fix: https://ossindex.sonatype.org/vuln/7ea56ad4-8a8b-4e51-8ed9-5aad83d8efb1 -->
310+ <exclude >7ea56ad4-8a8b-4e51-8ed9-5aad83d8efb1</exclude >
311+ </excludeVulnerabilityIds >
312+ </configuration >
313+ </plugin >
314314 </plugins >
315315 </build >
316316</project >
0 commit comments