(final String groupId, final String artifactId,
final String version, final Pattern ignorePattern)
| 267 | } |
| 268 | |
| 269 | private static boolean isIgnored(final String groupId, final String artifactId, |
| 270 | final String version, final Pattern ignorePattern) { |
| 271 | // version > 3.12.0 does not work with our site.xml and also not with a refactored one |
| 272 | if ("maven-site-plugin".equals(artifactId) |
| 273 | && (version.startsWith("3.12.1") || version.startsWith("3.20.") || version.startsWith("3.21."))) { |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | // ancient common versions |
| 278 | if ("commons-io".equals(artifactId) && (version.startsWith("2003"))) { |
| 279 | return true; |
| 280 | } |
| 281 | if ("commons-net".equals(artifactId) && (version.startsWith("2003"))) { |
| 282 | return true; |
| 283 | } |
| 284 | |
| 285 | if (ignorePattern.matcher(version).matches()) { |
| 286 | return true; |
| 287 | } |
| 288 | |
| 289 | return false; |
| 290 | } |
| 291 | } |
no test coverage detected