apache / apache/maven-release

Multiple spaces in plugin parameter are reduced to 1 during prepare

Open
#1,453 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
128
Forks
145
Avg merge
7h 7m
Merged PRs (30d)
3

Description

### Affected version

3.3.1

### Bug description

I have a project where I have the antrun plugin generate a file.
One of the configuration parameters in that antrun is this:
``

The multiple spaces in the pathsep are needed as shown.
After doing a `mvn release:prepare` not only the version in the pom.xml has been updated but this line has been changed to where the multiple spaces have been replaced by a single space.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the release:prepare entry point and inspect how it updates pom.xml, focusing on preservation of whitespace in the antrun plugin parameter. Reproduce the reported project configuration with multiple spaces in pathsep, then verify that release:prepare changes only the intended version fields and preserves the parameter spacing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.