Skip to content

[MNG-6296] New option -Dstyle.color is not working #7568

@jira-importer

Description

@jira-importer

Robin Müller opened MNG-6296 and commented

The new option -Dstyle.color=(auto|always|never) is not working. This happens as the corresponding code accesses the UserProperties of the CliRequest before they are set. I'll provide a quick fix for this by changing the order of the methods in the doMain method so the properties will be set at the right time.
But I'd suggest to refactor the whole stuff so the code will become easier to understand and maintain. IMHO the functionality of the properties method in the MavenCli should be moved to the constructor of the CliRequest. The CliRequest itself should be immutable so all fields will have the correct content all the time.


Affects: 3.5.2

Issue Links:

  • MNG-5835 Maven-Plugin's getLog() ignores -Dorg.slf4j.simpleLogger.defaultLogLevel=warn
    ("incorporates")

  • MNG-6380 Option -Dstyle.color=always doesn't force color output

  • MNG-6241 colour output cannot be disabled from settings.xml or MAVEN_OPTS

  • MNG-6220 Add CLI options to control color output
    ("breaks")

Remote Links:

4 votes, 14 watchers

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions