apache / apache/maven-compiler-plugin

[MCOMPILER-514] Cant stack compiler plugin argument variations

Open
#733 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.