It looks like there is no way to do this.
I have added a static analysis checkstyle check for those package-info.java
to make sure they are always there.
for more details.
Then if you run checkstyle static analysis on the project, it will complain
for any missing package-info.java file.
Finally, to suppress the checkstyle rule on the tests, and on the
package where the package annotation definition exists use this suppression