I\'m writing a maven package with directory structure
frtex
pom.xml
frtex/src/main/java/some-files.java
frtex/src/main/java/utils/some-other-files.java
The problem is not in your maven configuration.
You need to include a package-info.java
for the utils package.
It is a file located at src/main/java/utils/package-info.java
that will contain the javadoc for the package, in contrast to the javadoc for a class.
For more information about package-level javadocs, you can read the documentation.
This is a late response, but I just ran into the same issue.
The solution is you need to add the following to your plugin inside the configuration
section
<configuration>
<sourcepath>src/main/java</sourcepath>
...
</configuration>