Can't use ${git.commit.id.abbrev} in the pom.xml · Issue #226 · git-commit-id/git-commit-id-maven-plugin · GitHub
Skip to content

Can't use ${git.commit.id.abbrev} in the pom.xml #226

Description

@jinyanroot

When I using maven-git-commit-id-plugin,I want use ${git.commit.id.abbrev} in my pom.xml.
The code is looks like thie:
pom

The name of war is "xxx-0.0.1-${git.commit.id.abbrev}-20151126222413.war".
You can see,the value of ${git.commit.id.abbrev} is not replaced.
But it had been replaced in the "git.properties".

I don't know why and I tried to many ways,also asked google,but I'm faild.
Can anyone help me?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions