apache / apache/maven-compiler-plugin

A non-deprecated path to set a compiler option

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

Description

### New feature, improvement proposal

I'm using the latest 3.x maven compiler plugin.

I need a non-deprecated path to set a compiler option - in this case, -properties= to ecj.

We're currently using to pass the -properties= compiler argument to ecj - this is currently the only path to get a key=value compiler custom argument.

Since this method is deprecated, no paths are left to set free form arguments to the compiler (we can get to key=null or key=value=null - which does not work in this case)

I'm looking for a valid path to get the compiler argument in without challenging the decision to deprecate compilerArguments.

The solution I am proposing (for which I have a working solution, if the idea floats) - is to add to the Compiler Mojo.

If specified, that would get passed along as the -properties compiler argument. Its straightforward, but its specific for ecj, so I don't really like it all that much.

The more abstract designs I can think of really is just the same as either re-implementing compilerArguments with a different name... or just not deprecate it.

For context, we have a long list of ecj compiler properties that are reused and maintained through multiple projects and tools - it is, by far, the simplest method for us to manage these.

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.