apache / apache/maven-compiler-plugin
[MCOMPILER-514] Cant stack compiler plugin argument variations
- Dominant language
- Java
- Stars
- 261
- Forks
- 191
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 8
Description
**[Delany](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=delany)** opened **[MCOMPILER-514](https://issues.apache.org/jira/browse/MCOMPILER-514?redirect=false)** and commented
This works
```java
-Xlint:all,-processing
-Xlint:all
-XDcompilePolicy=byfile
-Xplugin:ErrorProne
-Xplugin:ErrorProne
```
But this
```java
-Xlint:all,-processing
-Xlint:all
-XDcompilePolicy=byfile
-Xplugin:ErrorProne
-Xplugin:ErrorProne -XepDisableAllChecks
```
fails with this
```
[ERROR] org.apache.maven.cli.MavenCli - plug-in not found: ErrorProne
```
There is no problem stacking -Xlint argument variations, or stacking the -Xplugin argument (provided the argument is the same.) But it dies when the -Xplugin argument varies. Why should this be?
Use case? I have separate profiles for activating various errorprone bugpatterns. I want a default configuration in place unless I activate one of these profiles. I dont want to have to edit source code every time to check a different bugpattern.
---
**Affects:** 3.10.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.