|
173 | 173 | <artifactId>enforce-managed-deps-rule</artifactId> |
174 | 174 | <version>1.0</version> |
175 | 175 | </dependency> |
| 176 | + <dependency> |
| 177 | + <groupId>de.is24.maven.enforcer.rules</groupId> |
| 178 | + <artifactId>illegal-transitive-dependency-check</artifactId> |
| 179 | + <version>1.7.4</version> |
| 180 | + </dependency> |
| 181 | + <dependency> |
| 182 | + <groupId>com.redhat.victims</groupId> |
| 183 | + <artifactId>enforce-victims-rule</artifactId> |
| 184 | + <version>1.3.4</version> |
| 185 | + </dependency> |
176 | 186 | </dependencies> |
177 | 187 | <executions> |
178 | 188 | <execution> |
|
198 | 208 | <banSnapshots /> |
199 | 209 | <unCheckedPluginList>org.eclipse.m2e:lifecycle-mapping</unCheckedPluginList> |
200 | 210 | </requirePluginVersions> |
| 211 | + <illegalTransitiveDependencyCheck implementation="de.is24.maven.enforcer.rules.IllegalTransitiveDependencyCheck"> |
| 212 | + <reportOnly>false</reportOnly> |
| 213 | + <regexIgnoredClasses> |
| 214 | + <regexIgnoredClass>com\.sun\.net\.httpserver\..+</regexIgnoredClass> |
| 215 | + <regexIgnoredClass>javax\..+</regexIgnoredClass> |
| 216 | + <regexIgnoredClass>org\.w3c\.dom\..+</regexIgnoredClass> |
| 217 | + <regexIgnoredClass>org\.xml\.sax\..+</regexIgnoredClass> |
| 218 | + </regexIgnoredClasses> |
| 219 | + <useClassesFromLastBuild>true</useClassesFromLastBuild> |
| 220 | + </illegalTransitiveDependencyCheck> |
| 221 | + <victimsCheck implementation="com.redhat.victims.VictimsRule"> |
| 222 | + <!-- |
| 223 | + Check the project's dependencies against the database using |
| 224 | + name and version. The default mode for this is 'warning'. |
| 225 | +
|
| 226 | + Valid options are: |
| 227 | +
|
| 228 | + disabled: Rule is still run but only INFO level messages aand no errors. |
| 229 | + warning : Rule will spit out a warning message but doesn't result in a failure. |
| 230 | + fatal : Rule will spit out an error message and fail the build. |
| 231 | + --> |
| 232 | + <metadata>warning</metadata> |
| 233 | + <!-- |
| 234 | + Check the project's dependencies against the database using |
| 235 | + the SHA-512 checksum of the artifact. The default is fatal. |
| 236 | +
|
| 237 | + Valid options are: |
| 238 | +
|
| 239 | + disabled: Rule is still run but only INFO level messages aand no errors. |
| 240 | + warning : Rule will spit out a warning message but doesn't result in a failure. |
| 241 | + fatal : Rule will spit out an error message and fail the build. |
| 242 | + --> |
| 243 | + <fingerprint>fatal</fingerprint> |
| 244 | + <!-- |
| 245 | + Disables the synchronization mechansim. By default the rule will |
| 246 | + attempt to update the database for each build. |
| 247 | +
|
| 248 | + Valid options are: |
| 249 | +
|
| 250 | + auto : Automatically update the database entries on each build. |
| 251 | + daily : Update the database entries once per day. |
| 252 | + weekly: Update the database entries once per week. |
| 253 | + offline : Disable the synchronization mechanism. |
| 254 | + --> |
| 255 | + <updates>auto</updates> |
| 256 | + </victimsCheck> |
201 | 257 | </rules> |
202 | 258 | </configuration> |
203 | 259 | </execution> |
|
0 commit comments