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

[MCOMPILER-425] Compiler argument with newline treated as multiple arguments in fork mode

Open
#648 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the XML configuration with fork enabled and compare how the multiline is passed in forked and non-forked modes. Review the related MCOMPILER-572 report for the Windows case; done means the multiline value remains one compiler argument when forked, including on Windows.

Written by the indexing model from the issue text.

Description

bug priority:major

David Phillips opened MCOMPILER-425 and commented

In the below example, we want to pass the second argument as a single argument to the compiler, but we add newlines in the XML for readability. This works correctly when not forking, but when forking, the argument is treated as multiple arguments.

<configuration>
  <fork>true</fork>
  <compilerArgs>
    <arg>-XDcompilePolicy=simple</arg>
    <arg>
      -Xplugin:ErrorProne
      -Xep:ObjectToString:ERROR
    </arg>
  </compilerArgs>
  <annotationProcessorPaths>
    <path>
      <groupId>com.google.errorprone</groupId>
      <artifactId>error_prone_core</artifactId>
      <version>2.4.0</version>
    </path>
  </annotationProcessorPaths>
</configuration>

Affects: 3.8.1

Issue Links:

  • MCOMPILER-572 Multi-line <arg> does not work on Windows when forked
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.