You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "mechite (via GitHub)" <gi...@apache.org> on 2025/10/09 01:48:54 UTC
[I] `excludePackageNames` with latest `maven-javadoc-plugin` not working correctly [maven-javadoc-plugin]
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: <excludePackageNames>*.internal:org.acme.exclude1.*:org.acme.exclude2</excludePackageNames>
(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: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `excludePackageNames` with latest `maven-javadoc-plugin` not working correctly [maven-javadoc-plugin]
Posted by "mechite (via GitHub)" <gi...@apache.org>.
mechite commented on issue #1271:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1271#issuecomment-3901098425
That's interesting.
@armandino for your use-case, does it work if you make a main `execution`
block that builds with the exclusion, and then a separated `execution`
that builds the `module-info`?
Thanks for potentially finding the cause
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `excludePackageNames` with latest `maven-javadoc-plugin` not working correctly [maven-javadoc-plugin]
Posted by "armandino (via GitHub)" <gi...@apache.org>.
armandino commented on issue #1271:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1271#issuecomment-3901081050
I'm having the same problem in a project that uses JPMS modules. It seems `excludePackageNames` is not honoured when `module-info.java` is present. Without `module-info.java` is works as expected.
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `excludePackageNames` with latest `maven-javadoc-plugin` not working correctly [maven-javadoc-plugin]
Posted by "armandino (via GitHub)" <gi...@apache.org>.
armandino commented on issue #1271:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1271#issuecomment-3901257908
@mechite that didn't work for me. I've tried different approaches, including `leagacyMode`, but no luck yet.
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org