Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[MCOMPILER-442] Add "showLint" option

Open
#660 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

No source files or tests are named. Start by locating the plugin configuration handling and the code that assembles the compiler command line; trace how compilerArgs is processed. Done means a showLint value adds -Xlint with the element contents as its parameter, while an empty present element adds -Xlint.

Written by the indexing model from the issue text.

Description

enhancement priority:minor

mike duigou opened MCOMPILER-442 and commented

Add a showLint configuration option to eliminate the need to use

 

<configuration>
  <fork>true</fork>
  <compilerArgs>
    <arg>-Xlint:all</arg>
  </compilerArgs>
  ...
</configuration>

to configure the display of compiler lint messages. The advantage to a showLint configuration would be that it is more ammenable to inclusion in a parent or reactor project for inheritance in to sub-modules.

The <showLint> element, if present would add the "-Xlint" option to the compiler command line and the contents of the element as the parameter. ie.

<showLint>all,-options,-path</showLint>

would add:

-Xlint:all,-options,-path

to the compiler command line.


Affects: 3.8.1

Remote Links:

Dominant language
Java
Stars
261
Forks
194
Avg merge
1d 5h
Merged PRs (30d)
17

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-compiler-plugin

All issues in apache/maven-compiler-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.