[ https://issues.apache.org/jira/browse/MJAVADOC-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16787775#comment-16787775 ]
Robert Scholte edited comment on MJAVADOC-584 at 3/8/19 10:50 AM: ------------------------------------------------------------------ Having a closer look at the example page, trying to understand the idea behind the exclude expressions:" * com.mycompany.myapp.package1.\* means exclude every subpackage of {{com.mycompany.myapp.package1}}, but this package itself is included. * com.mycompany.myapp.package2 means exclude every package starting with {{com.mycompany.myapp.package2}} * \*.util.\* means exclude any package that contains {{util}} Do you see the difference between the meaning of an expression ending with {{.\*}} depending if it starts with {{\*.}}? IMHO this is inconsistent. One thing that came up: is {{\*.util}} allowed and what does it mean? It should have a different meaning compared to {{\*.util.\*}}, right? was (Author: rfscholte): Having a closer look at the example page, trying to understand the idea behind the exclude expressions:" * com.mycompany.myapp.package1.\* means exclude every subpackage of {{com.mycompany.myapp.package1}}, but this package itself is included. * com.mycompany.myapp.package2 means exclude every package starting with {{com.mycompany.myapp.package2}} * \*.util.\* means exclude any package that contains {{util}} Do you see the difference between the meaning of an expression ending with {{.\*}} depending if it starts with {{\*.}}? IMHO this is inconsistent. One thing that came up: is {{\*.util }} allowed and what does it mean? It should have a different meaning compared to {{\*.util.\*}}, right? > excludePackageNames is not working as documented anymore > -------------------------------------------------------- > > Key: MJAVADOC-584 > URL: https://issues.apache.org/jira/browse/MJAVADOC-584 > Project: Maven Javadoc Plugin > Issue Type: Bug > Affects Versions: 3.1.0 > Reporter: Thomas Mortagne > Priority: Minor > > We have the following configuration at XWiki: > https://github.com/xwiki/xwiki-commons/blob/xwiki-commons-11.1/pom.xml#L1946. > We don't want to produce javadoc for internal packages. This is very similar > to the example given on > https://maven.apache.org/plugins/maven-javadoc-plugin/examples/exclude-package-names.html. > When I upgrade to 3.1.0 the exclude is not taken into account anymore (I get > error related to classes located in internal packages). For example: > {noformat} > /home/hudsonagent/jenkins_root/workspace/XWiki_xwiki-commons_master/xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-api/src/main/java/org/xwiki/extension/version/internal/DefaultVersionConstraint.java:49: > error: reference not found > * @see org.sonatype.aether.util.version.GenericVersionConstraint > {noformat} > I noticed MJAVADOC-548 but since the documentation did not changed I assumed > my use case was still OK. -- This message was sent by Atlassian JIRA (v7.6.3#76005)