apache / apache/maven-compiler-plugin

[MCOMPILER-521] Documentation: <exclude> option

Open
#721 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
261
Forks
191
Avg merge
1d 5h
Merged PRs (30d)
8

Description

**[Kevin A Shaw](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hephaestus)** opened **[MCOMPILER-521](https://issues.apache.org/jira/browse/MCOMPILER-521?redirect=false)** and commented

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.  {{}}

```java

maven-compiler-plugin
3.8.0


/com/company/conflict-dir/

```

 

---
No further details from [MCOMPILER-521](https://issues.apache.org/jira/browse/MCOMPILER-521?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the maven-compiler-plugin documentation linked in the issue and verify whether the shown configuration is supported. Done means adding a clear reference to the option and its usage to the relevant documentation, if confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.