This question is closely related to java-class-name-same-as-the-nested-package-name . My specific question is here: how can I disable or suppress this warning in Eclipse?
Some notes:
Unfortunately, it is currently not possible to disable this warning in Eclipse. There is an open function request to make this possible , however it has not been operational since 2012.
For Jenkins plugins, since there are no compilation resources in src / main / resources, in Eclipse I switched “ignore optional compilation problems” to “Yes”. This will clear the warning.