Skip to content

maven.gitcommitid.skip does not override configuration in POM #315

Closed
@jgerken

Description

@jgerken

Executing Maven with the property -Dmaven.gitcommitid.skip=true does not skip the plugin execution when the configuration in the POM includes a <skip>false</skip>. Thus, the command line option does not override the setting in the POM.

Usually, all properties set via command line override the settings in the POM (this is even the purpose of the properties), e.g. skipping the tests or skipping linting. In my opinion, the behaviour of the git-commit-plugin should be changed to follow the general Maven approach and let command line property override the setting in the POM.

For now, an easy workaround exists, simply remove <skip>false</skip> from the POM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions