Discussion:
[jira] [Created] (MJAVADOC-548) Misleading Setting "excludePackageNames"
Jesko Jochum (JIRA)
2018-12-03 10:03:00 UTC
Permalink
Jesko Jochum created MJAVADOC-548:
-------------------------------------

Summary: Misleading Setting "excludePackageNames"
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Improvement
Components: javadoc
Affects Versions: 3.0.1, 2.10.4
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum


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:
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-03 16:27:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16707480#comment-16707480 ]

Robert Scholte commented on MJAVADOC-548:
-----------------------------------------

Your description doesn't match with how this parameter should work/is described, see https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#excludePackageNames
Also notice that these are translated to the javadoc tool arguments {{-exclude packagename1:packagename2:...}}
Please provide a minimal project to reproduce your issue.
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Improvement
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jesko Jochum (JIRA)
2018-12-04 08:05:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesko Jochum updated MJAVADOC-548:
----------------------------------
Attachment: mjavadoc-548-example.zip
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Improvement
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jesko Jochum (JIRA)
2018-12-04 08:16:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708355#comment-16708355 ]

Jesko Jochum commented on MJAVADOC-548:
---------------------------------------

How do you mean?

I do not have any colons, commas or semicolons in my {{excludePackageNames}}, because I do not have anything else to exclude. You could also change the value to {{*.temp.*:}} or {{*.temp}} or {{*.temp.*:org.acme.exclude1.*}} without a change in the error caused by the project being inside a folder named {{temp}}.

Anyways, I copied the given example setting {{<excludePackageNames>*.internal:org.acme.exclude1.*:org.acme.exclude2</excludePackageNames>}}, renamed the folder my project resides in from {{D:\temp}} to {{D:\internal}}, and I have the same result of no javadoc being generated.

Please see the attached example [^mjavadoc-548-example.zip], with my project already residing inside a folder called {{internal}}. Extract the files and run {{mvn javadoc:jar}} inside the project folder {{mjavadoc-548-example}} and you will see that no javadoc is generated. Move the project out of the folder called {{internal}} and run {{mvn javadoc:jar}} inside the project folder again, and you will see the javadoc is generated as expected.
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Improvement
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Jesko Jochum (JIRA)
2018-12-04 08:17:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708355#comment-16708355 ]

Jesko Jochum edited comment on MJAVADOC-548 at 12/4/18 8:16 AM:
----------------------------------------------------------------

How do you mean?

I do not have any colons, commas or semicolons in my {{excludePackageNames}}, because I do not have anything else to exclude. You could also change the value to {{\*.temp.\*:}} or {{\*.temp}} or {{\*.temp.\*:org.acme.exclude1.\*}} without a change in the error caused by the project being inside a folder named {{temp}}.

Anyways, I copied the given example setting {{<excludePackageNames>\*.internal:org.acme.exclude1.\*:org.acme.exclude2</excludePackageNames>}}, renamed the folder my project resides in from {{D:\temp}} to {{D:\internal}}, and I have the same result of no javadoc being generated.

Please see the attached example [^mjavadoc-548-example.zip], with my project already residing inside a folder called {{internal}}. Extract the files and run {{mvn javadoc:jar}} inside the project folder {{mjavadoc-548-example}} and you will see that no javadoc is generated. Move the project out of the folder called {{internal}} and run {{mvn javadoc:jar}} inside the project folder again, and you will see the javadoc is generated as expected.


was (Author: jejo86):
How do you mean?

I do not have any colons, commas or semicolons in my {{excludePackageNames}}, because I do not have anything else to exclude. You could also change the value to {{*.temp.*:}} or {{*.temp}} or {{*.temp.*:org.acme.exclude1.*}} without a change in the error caused by the project being inside a folder named {{temp}}.

Anyways, I copied the given example setting {{<excludePackageNames>*.internal:org.acme.exclude1.*:org.acme.exclude2</excludePackageNames>}}, renamed the folder my project resides in from {{D:\temp}} to {{D:\internal}}, and I have the same result of no javadoc being generated.

Please see the attached example [^mjavadoc-548-example.zip], with my project already residing inside a folder called {{internal}}. Extract the files and run {{mvn javadoc:jar}} inside the project folder {{mjavadoc-548-example}} and you will see that no javadoc is generated. Move the project out of the folder called {{internal}} and run {{mvn javadoc:jar}} inside the project folder again, and you will see the javadoc is generated as expected.
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Improvement
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-04 20:19:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MJAVADOC-548:
------------------------------------
Issue Type: Bug (was: Improvement)
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-04 20:20:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709214#comment-16709214 ]

Robert Scholte commented on MJAVADOC-548:
-----------------------------------------

Thanks for the sample project. Confirmed it is a bug.
Post by Jesko Jochum (JIRA)
Misleading Setting "excludePackageNames"
----------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-07 09:32:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MJAVADOC-548:
------------------------------------
Summary: Directoryname mixed up with excludePackageNames (was: Misleading Setting "excludePackageNames")
Directoryname mixed up with excludePackageNames
-----------------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Priority: Minor
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-09 16:05:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MJAVADOC-548.
-----------------------------------
Resolution: Fixed
Assignee: Robert Scholte
Fix Version/s: 3.0.2

Fixed in [936cf7d5c91f5f3fa0fc54c1326601432374b112|https://gitbox.apache.org/repos/asf?p=maven-javadoc-plugin.git;a=commit;h=936cf7d5c91f5f3fa0fc54c1326601432374b112]
Post by Robert Scholte (JIRA)
Directoryname mixed up with excludePackageNames
-----------------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Assignee: Robert Scholte
Priority: Minor
Fix For: 3.0.2
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Hudson (JIRA)
2018-12-09 16:24:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714012#comment-16714012 ]

Hudson commented on MJAVADOC-548:
---------------------------------

Build succeeded in Jenkins: Maven TLP » maven-javadoc-plugin » master #86

See https://builds.apache.org/job/maven-box/job/maven-javadoc-plugin/job/master/86/
Post by Robert Scholte (JIRA)
Directoryname mixed up with excludePackageNames
-----------------------------------------------
Key: MJAVADOC-548
URL: https://issues.apache.org/jira/browse/MJAVADOC-548
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: javadoc
Affects Versions: 2.10.4, 3.0.1
Environment: Windows 7 x64
Apache Maven 3.5.4
Reporter: Jesko Jochum
Assignee: Robert Scholte
Priority: Minor
Fix For: 3.0.2
Attachments: mjavadoc-548-example.zip
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.
{noformat}
...
<!-- Exclude files in temporary packages -->
<excludePackageNames>*.temp.*</excludePackageNames>
...
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...