maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MJAVADOC-573) excluding generated sources with sourceFileExcludes not working
Date Fri, 08 Feb 2019 09:38:00 GMT

     [ https://issues.apache.org/jira/browse/MJAVADOC-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte closed MJAVADOC-573.
-----------------------------------
    Resolution: Not A Problem
      Assignee: Robert Scholte

> excluding generated sources with sourceFileExcludes not working
> ---------------------------------------------------------------
>
>                 Key: MJAVADOC-573
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-573
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.1
>            Reporter: Jimmy Praet
>            Assignee: Robert Scholte
>            Priority: Major
>
> I want to exclude generated source code in the target folder from the javadoc plugin
execution.
> {code:java}
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-javadoc-plugin</artifactId>
>     <version>3.0.1</version>
>     <executions>
>         <execution>
>             <phase>process-sources</phase>
>             <goals>
>                 <goal>javadoc</goal>
>             </goals>
>             <configuration>
>                 <sourceFileExcludes>
>                     <sourceFileExclude>**/target/**/*.java</sourceFileExclude>
>                 </sourceFileExcludes>
>             </configuration>
>         </execution>
>     </executions>
> </plugin>
> {code}
> But this isn't working. When I activate debug mode, I see these files are still there
in the argfile:
>  
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/ObjectFactory.java'
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/package-info.java'
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/TestPortType.java'
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/TestRequest.java'
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/TestResponse.java'
> 'D:/projects/JaxUtils/target/generated-sources/jaxws/be/fgov/kszbcss/intf/testservice/TestService.java'
> If instead, I configure 
> {code}
> <sourceFileExclude>**/intf/**/*.java</sourceFileExclude>
> {code}
> then it does work. So I have the impression these exclusion patterns are maybe resolved
from within the specific source root {{D:/projects/JaxUtils/target/generated-sources/jaxws/}}
instead of the project basedir?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message