[
https://issues.apache.org/jira/browse/MJAVADOC-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jimmy Praet updated MJAVADOC-573:
---------------------------------
Description:
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?
was:
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
{{<sourceFileExclude>**/intf/**/*.java</sourceFileExclude>}} 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?
> 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
> 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)