Skip to content

Using git commit hash with Artifactory Maven Plugin #594

Closed
@artespoon

Description

@artespoon

Description

I would like to add git commit hash as a suffix to my jar file using git-commit-id-maven-plugin and then deploy it to artifactory using artifactory-maven-plugin.

I'm able to produce a local jar file with a git commit hash in the target folder. But when I run mvn deploy it gets published to artifactory with the default version (no git commit hash).

I tried to follow solution mentioned in the FAQ, but don't know if this workaround can be used for artifactory maven plugin.

Expected behavior

I would like to be able to publish to artifactory jar file with version and git commit hash.

Additional context

  • maven version: 3.8.2
  • git-commit-id-maven-plugin version: 5.0.0
  • artifactory-maven-plugin: 3.2.3
  • maven command: mvn clean deploy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions