Questions tagged [jgitver]

10 questions
3
votes
1 answer

Invalid spring-boot-dependency version when using jgitver and local repo in maven

When I use spring-boot-starter-parent combined with local repository and jgitver I get the following error: [ERROR] The project tmplsvcpkg:TMPL_SVC_NAME-parent:0.0.0-27-a592e4fb-feature_gitlabci-dirty (/home/user/git/service-template/pom.xml) has…
rattaman
  • 506
  • 3
  • 15
3
votes
1 answer

Jgitver maven plugin: Always calculates -SNAPSHOT versions on tagged commits

Here's what I do: I commit and push something I go to Github and create a release-tag on the latest commit on master, say 0.0.1 Jenkins checks out branches /tags/ Checking out Revision a499.......0e (refs/tags/0.0.1) Jgitver claims: [echo]…
Brixomatic
  • 381
  • 4
  • 16
1
vote
0 answers

How to skip commit id on tags with maven and jgitver

We've been using jgitver maven plugin in the version 1.5.1 until recently and now we are testing the 1.9.0 version. We configured it in a way that will add all the bells and whistles for branches but for tags there should be only the tag name. It…
rattaman
  • 506
  • 3
  • 15
1
vote
2 answers

Getting AccessDeniedException when cloning repo in Java using JGit

I am programmatically trying to clone a repo using the JGit API. I am using the following piece of code, but when I execute it, I am getting an error. I have tried all possible solutions which I could find but still I am unable to resolve the…
Johna
  • 85
  • 1
  • 8
1
vote
1 answer

jgitver - maven plugin: Derive version from Git commit, including Git SHA8 String and SNAPSHOT marker

I'll try to keep this question short and simple: with the jgitver maven plugin I can easily create versions from Git tags. The ${jgitver.calculated_version} variable that I can use in my .pom file will, by default, behave like this: set Git tag…
Brixomatic
  • 381
  • 4
  • 16
1
vote
2 answers

jgitver plugin, get version in pom

I'm using jgitver library to automatically generate semver using state of the Git repository. I have a multi module project where modules are interdependent, meaning if I make change to one module then other modules should start referring to the new…
11thdimension
  • 10,333
  • 4
  • 33
  • 71
1
vote
2 answers

Commit timestamp in Maven version using jgitver

I'm evaluating the jgitver Maven extension for calculating artefact versions from git metadata. jgitver provides the commit datetime in a property called jgitver.head_commit_datetime, but I can't figure out how to include the timestamp in the…
otto.poellath
  • 4,129
  • 6
  • 45
  • 60
0
votes
0 answers

IntelliJ + jgitver-maven-plugin - Can't find implementations in multi-module

IntelliJ 2022.2.1 jgitver-maven-plugin 1.9.0 In my maven project I have the following with an interface in one module and implementation in another. It all works fine and builds from command line. parent |____ spec | …
RobHay
  • 53
  • 5
0
votes
2 answers

Is there a way to interpolate all ${project.version} variables in a Maven pom.xml?

I need to replace all occurrences of ${project.version} with the real value in a pom.xml. I can do that with the maven-flatten-plugin, but that will rewrite the whole pom.xml instead of just replacing the project.version only. As I want to use the…
Michael
  • 3,085
  • 1
  • 17
  • 15
0
votes
1 answer

Using JGitVer in a tycho pomless build

I would like to use the jgitver maven plugin to automatic define the version of eclipse plugins, features, repository that are built with tycho in pomless mode. The version management of this 3 plugins are: jgitver computes a version depending on…
MSaguer
  • 3
  • 4