[
https://issues.apache.org/jira/browse/MCOMPILER-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin A Shaw updated MCOMPILER-521:
-----------------------------------
Description:
I am working with a multi-module project and need to exclude some
source-directories from compilation for only one module (StackOverFlow
[posting|https://stackoverflow.com/questions/75120440/excluding-source-directory-in-maven]).
I have seen
[examples|https://coderanch.com/t/745331/java/Excluding-java-files-Maven-build]
suggesting that the `maven-compiler-plugin` can exclude directories with the
following code.
I have searched the Apache Maven documentation
([link|https://maven.apache.org/plugins/maven-compiler-plugin/index.html]) but
this is never mentioned. Is this actually a supported option? If so, could a
reference to it be added to the documentation. It would make searching on it
so much easier. \{{}}
{code:java}
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<excludes>
<exclude>/com/company/conflict-dir/</exclude>
</excludes>{code}
was:
I am working with a multi-module project and need to exclude some
source-directories from compilation for only one module (StackOverFlow
[posting|[https://stackoverflow.com/questions/75120440/excluding-source-directory-in-maven])|https://stackoverflow.com/questions/75120440/excluding-source-directory-in-maven].
I have seen
[examples]([https://coderanch.com/t/745331/java/Excluding-java-files-Maven-build])
suggesting that the `maven-compiler-plugin` can exclude directories with the
following code.
I have searched the Apache Maven documentation
([link]([https://maven.apache.org/plugins/maven-compiler-plugin/index.html))]
but this is never mentioned. Is this actually a supported option? If so,
could a reference to it be added to the documentation. It would make searching
on it so much easier. \{{}}
{code:java}
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<excludes>
<exclude>/com/company/conflict-dir/</exclude>
</excludes>{code}
> Documentation: <exclude> option
> -------------------------------
>
> Key: MCOMPILER-521
> URL: https://issues.apache.org/jira/browse/MCOMPILER-521
> Project: Maven Compiler Plugin
> Issue Type: Improvement
> Environment: MacOS 12.2
> Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
> Reporter: Kevin A Shaw
> Priority: Major
>
> I am working with a multi-module project and need to exclude some
> source-directories from compilation for only one module (StackOverFlow
> [posting|https://stackoverflow.com/questions/75120440/excluding-source-directory-in-maven]).
> I have seen
> [examples|https://coderanch.com/t/745331/java/Excluding-java-files-Maven-build]
> suggesting that the `maven-compiler-plugin` can exclude directories with the
> following code.
> I have searched the Apache Maven documentation
> ([link|https://maven.apache.org/plugins/maven-compiler-plugin/index.html])
> but this is never mentioned. Is this actually a supported option? If so,
> could a reference to it be added to the documentation. It would make
> searching on it so much easier. \{{}}
> {code:java}
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>3.8.0</version>
> <configuration>
> <excludes>
> <exclude>/com/company/conflict-dir/</exclude>
> </excludes>{code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)