You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Mouncer (Jira)" <ji...@apache.org> on 2022/06/16 22:43:00 UTC
[jira] [Comment Edited] (MJAVADOC-718) break when path to file starts with com/
[ https://issues.apache.org/jira/browse/MJAVADOC-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555232#comment-17555232 ]
Brian Mouncer edited comment on MJAVADOC-718 at 6/16/22 10:42 PM:
------------------------------------------------------------------
[~michael-o][^sourceFileExcludes_Bug_Repro.zip]
[^sourceFileExcludes_Bug_Repro.zip]
extract zip.
cd to "sourceFileExcludes_Bug_Repro\cicd\jre\pom"
run "mvn package"
you can make excludes work or fail by toggling these comments that add the sources with or without "com" prefix.
<configuration>
<outputDirectory>./target</outputDirectory>
<sources>
*<source>../../../source/bindings/java/speech</source>*
*<!-- <source>../../../source/bindings/java/speech/com</source>*
*<source>../../../source/bindings/java/speech/jni</source> -->*
</sources>
</configuration>
was (Author: JIRAUSER291052):
[~michael-o][^sourceFileExcludes_Bug_Repro.zip]
[^sourceFileExcludes_Bug_Repro.zip]
extract zip.
cd to "sourceFileExcludes_Bug_Repro\cicd\jre\"
run "mvn package"
you can make excludes work or fail by toggling these comments that add the sources with or without "com" prefix.
<configuration>
<outputDirectory>./target</outputDirectory>
<sources>
*<source>../../../source/bindings/java/speech</source>*
*<!-- <source>../../../source/bindings/java/speech/com</source>*
*<source>../../../source/bindings/java/speech/jni</source> -->*
</sources>
</configuration>
> <sourceFileExcludes> break when path to file starts with com/
> -------------------------------------------------------------
>
> Key: MJAVADOC-718
> URL: https://issues.apache.org/jira/browse/MJAVADOC-718
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: javadoc
> Affects Versions: 3.0.1, 3.4.0
> Environment: Windows and Ubuntu...
> Reporter: Brian Mouncer
> Priority: Major
> Fix For: waiting-for-feedback
>
> Attachments: sourceFileExcludes_Bug_Repro.zip
>
>
> I have "<sourceFileExcludes>" working in our build system, but we initially added our source code without the leading /com/ in the sources path. This caused issues with the generated soueces.jar having a bad path in it, so we fixed our sources path to include the starting "/com/...". this fixed the path in sources.jar, but this seems to have broken <sourceFileExcludes> in the javadocs plugin.
> I know "sourceFileExcludes" was working before, as I can remove it or change the path slightly and javadocs throws errors on windows/linux about an android only httpclinet.java class we have, and using the correct sourceFileExcludes prevents javadocs from processing the android only source file and erroring out.
> Then when I change to add our sources file to our pom.xml to now include the leading "/com/" in our sources path, then sourceFileExcludes stops working. I have tested the exclude with both wild card paths "<exclude>**/HttpClient.java</exclude>" and full path "
> <exclude>/com/microsoft/cognitiveservices/speech/util/HttpClient.java</exclude>".
> both Wild card path and full qualified paths work when the source file in added to the pom.xml as "myclasspath/class.java" but both fail to exclude the files when the path is "com/myclasspath/class.java"...
> <sourceFileExcludes>
> <exclude>**/HttpClient.java</exclude>
> <exclude>/com/microsoft/cognitiveservices/speech/util/HttpClient.java</exclude>
> </sourceFileExcludes>
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)