Maven, javadoc : No source files for package

前端 未结 2 1778
北恋
北恋 2021-01-14 08:34

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


        
相关标签:
2条回答
  • 2021-01-14 08:46

    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.

    0 讨论(0)
  • 2021-01-14 08:59

    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>
    
    0 讨论(0)
提交回复
热议问题