Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
-
Description
Now we use checkstyle to report the illegal imports, but it will be easy to be ignored by developpers.
https://github.com/skuzzle/restrict-imports-enforcer-rule
This is an extension for the maven enforcer plugin, which is used to ban imports, and the advantage is that it will cause a compile error, which is not likely to be ignored. The extension is not perfect, but I think it is worth a try.