Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-548

Directoryname mixed up with excludePackageNames

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.10.4, 3.0.1
    • 3.1.0
    • javadoc
    • None
    • Windows 7 x64
      Apache Maven 3.5.4

    Description

      The setting excludePackageNames is not working, as I would expect, or should be renamed to something like excludePathNames with an updated description, to reveal what it is really doing.

      I have the default layout for the sources, i.e. they get stored in the ${project.basedir}\src\main\java subfolder of my project.
      For testing purposes I sometimes create classes in the subpackage my.companyname.temp, which I do not want to have included in the generated javadoc, why I use the following excludePackageNames setting:

      ...
      <!-- Exclude files in temporary packages -->
      <excludePackageNames>*.temp.*</excludePackageNames>
      ...
      

      in my pom.xml.

      By doing this, I wanted to exclude all .java sources in the folders ${project.basedir}\src\main\java*\temp* from the javadoc generation, but what I got was an exclusion of all .java sources, if there is a subfolder with the name temp in any segment of the path, even in the ${project.basedir}.

      So, after moving the project into e.g. the folder D:\temp no javadoc gets generated at all.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              jejo86 Je Jo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: