|
326 | 326 | <groupId>org.apache.cassandra</groupId> |
327 | 327 | <artifactId>cassandra-all</artifactId> |
328 | 328 | <version>${cassandra.version}</version> |
| 329 | + <exclusions> |
| 330 | + <exclusion> |
| 331 | + <groupId>org.slf4j</groupId> |
| 332 | + <artifactId>jcl-over-slf4j</artifactId> |
| 333 | + </exclusion> |
| 334 | + <exclusion> |
| 335 | + <groupId>org.slf4j</groupId> |
| 336 | + <artifactId>log4j-over-slf4j</artifactId> |
| 337 | + </exclusion> |
| 338 | + <exclusion> |
| 339 | + <groupId>ch.qos.logback</groupId> |
| 340 | + <artifactId>logback-classic</artifactId> |
| 341 | + </exclusion> |
| 342 | + <exclusion> |
| 343 | + <groupId>ch.qos.logback</groupId> |
| 344 | + <artifactId>logback-core</artifactId> |
| 345 | + </exclusion> |
| 346 | + </exclusions> |
329 | 347 | </dependency> |
330 | 348 |
|
331 | 349 | <dependency> |
|
338 | 356 | <groupId>org.apache.cassandra</groupId> |
339 | 357 | <artifactId>cassandra-thrift</artifactId> |
340 | 358 | <version>${cassandra.version}</version> |
| 359 | + <exclusions> |
| 360 | + <exclusion> |
| 361 | + <groupId>org.slf4j</groupId> |
| 362 | + <artifactId>jcl-over-slf4j</artifactId> |
| 363 | + </exclusion> |
| 364 | + <exclusion> |
| 365 | + <groupId>org.slf4j</groupId> |
| 366 | + <artifactId>log4j-over-slf4j</artifactId> |
| 367 | + </exclusion> |
| 368 | + </exclusions> |
341 | 369 | </dependency> |
342 | 370 |
|
343 | 371 | <dependency> |
|
1077 | 1105 |
|
1078 | 1106 | </plugins> |
1079 | 1107 | </pluginManagement> |
| 1108 | + |
| 1109 | + <plugins> |
| 1110 | + <!-- |
| 1111 | + ~ Some external logging bridges can interfere with our tests, giving false negatives. |
| 1112 | + --> |
| 1113 | + <plugin> |
| 1114 | + <groupId>org.apache.maven.plugins</groupId> |
| 1115 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 1116 | + <executions> |
| 1117 | + <execution> |
| 1118 | + <id>ban-logging-dependencies</id> |
| 1119 | + <goals> |
| 1120 | + <goal>enforce</goal> |
| 1121 | + </goals> |
| 1122 | + <configuration> |
| 1123 | + <rules> |
| 1124 | + <bannedDependencies> |
| 1125 | + <excludes> |
| 1126 | + <!-- JCL replacements --> |
| 1127 | + <exclude>org.slf4j:jcl-over-slf4j</exclude> |
| 1128 | + <exclude>org.springframework:spring-jcl</exclude> |
| 1129 | + <!-- Log4j 1.x replacements --> |
| 1130 | + <exclude>org.slf4j:log4j-over-slf4j</exclude> |
| 1131 | + <exclude>ch.qos.reload4j:reload4j</exclude> |
| 1132 | + <!-- Bridges to Log4j 1.x --> |
| 1133 | + <exclude>org.slf4j:slf4j-log4j12</exclude> |
| 1134 | + <exclude>org.slf4j:slf4j-reload4j</exclude> |
| 1135 | + <!-- PAX Logging just to be safe --> |
| 1136 | + <exclude>org.ops4j.pax.logging:*</exclude> |
| 1137 | + <!-- Logback --> |
| 1138 | + <exclude>ch.qos.logback:*</exclude> |
| 1139 | + </excludes> |
| 1140 | + </bannedDependencies> |
| 1141 | + </rules> |
| 1142 | + </configuration> |
| 1143 | + </execution> |
| 1144 | + </executions> |
| 1145 | + </plugin> |
| 1146 | + </plugins> |
1080 | 1147 | </build> |
1081 | 1148 |
|
1082 | 1149 | </project> |
0 commit comments