You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kevin A Shaw (Jira)" <ji...@apache.org> on 2023/01/14 21:56:00 UTC

[jira] [Created] (MCOMPILER-521) Documentation: option

Kevin A Shaw created MCOMPILER-521:
--------------------------------------

             Summary: 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


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.  

```
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<excludes>
<!-- OK -->
<exclude>*/com/company/conflict-dir/*</exclude>

</excludes>
```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)