EffectivePomMojo encoding fallback can return null

Open Beginner friendly
#394 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
build-system

Research direction

Open src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java at line 110 and inspect how the encoding is selected when output is null. Run the relevant Maven plugin tests, or the project test suite if no narrower test is identified. Done means the fallback remains valid even when the system file.encoding property is unavailable.

Written by the indexing model from the issue text.

Description

bug

In src/main/java/org/apache/maven/plugins/help/EffectivePomMojo.java:110:

String encoding = output != null ? project.getModel().getModelEncoding() : System.getProperty("file.encoding");

System.getProperty("file.encoding") can theoretically return null.

Dominant language
Java
Stars
29
Forks
42
Avg merge
23h 15m
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

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-help-plugin

All issues in apache/maven-help-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.