mechite opened a new issue, #1271:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1271

   ### Affected version
   
   3.12.0
   
   ### Bug description
   
   It used to (and still in the documentation) accept wildcards with 
"subpackages":
   
   `<excludePackageNames>org.example.*</excludePackageNames>`
   
   When running with my local GraalVM 21 installation, this works.
   Running with my local GraalVM 25 installation, it does not exclude anything 
(not even `org.example`!)
   Same issues occur with Oracle JDK 25.
   
   Combined with:
   - `<doclint>all,-missing</doclint>`
   - `<failOnError>true</failOnError>`
   ...this is causing a build of mine to fail.
   
   Yes, I will migrate to directly specify each package, as I do also believe 
subpackages may not be a good convention.
   I am unsure if this issue belongs to this Maven plugin.
   
   A quick check shows:
   > `-exclude` _pkglist_
   > Unconditionally, excludes the specified packages and their subpackages...
   > [Java 25 documentation for `javadoc` 
tool](https://docs.oracle.com/en/java/javase/25/docs/specs/man/javadoc.html#options-for-javadoc)
   ...so perhaps it does not belong here.
   
   However, a quick skim read - it does not appear this documentation mentions 
wildcards.
   The `plugin.xml` of `maven-javadoc-plugin` does:
   > Wildcards work as followed:
   > * a wildcard at the beginning should match one or more directories 
   > * any other wildcard must match exactly one directory 
   >
   > Example: 
&lt;excludePackageNames&gt;*.internal:org.acme.exclude1.*:org.acme.exclude2&lt;/excludePackageNames&gt;
   (and I was previously using these wildcards in a project).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to