All Questions
1,126
questions
-1
votes
0
answers
25
views
Import correctrly maven project from git
I would like to know what is the most correct method to import a maven project into eclipse downloaded with git clone and avoid the problem with the pom.xml and the related paths.
I hope someone can ...
1
vote
1
answer
34
views
What are git-ref and git-ref-short tags in maven pom file
In spring boot application, we are using git-ref and git-ref-short tags in maven pom file as shown below:
<plugin>
<groupId>org.springframework.boot</groupId&...
0
votes
0
answers
28
views
Replicating maven branch and release using Gradle
I'm moving from Maven to Gradle and have been happy so far. However, I'm stuck on the correct workflow to replicate maven branch and maven release.
My git workflow is setup like this:
The most recent ...
0
votes
1
answer
51
views
Git branch name in pom.xml properties
I am trying to use git branch name in pom.xml properties for sonar scan.
<properties> `
<sonar.branch.name>${branch.name}</sonar.branch.name>`
</properties>
for this i am ...
1
vote
0
answers
27
views
Openshift: Could not find artifact when building java application using s2i with maven multimodule from GIT Submodules
Currently having difficultly building a Maven multimodule project using GIT submodules.
Using a GIT local repo as the source for OKD/Openshift S2i build for a Java (JDK21) application on OKD 4.15. The ...
0
votes
0
answers
42
views
Custom merge driver for Json files in a maven
Hi all I am looking to create a custom merge driver for JSON files, this needs to be a custom driver as files will need to be handled differently depending on their content.
I have the following (...
-1
votes
1
answer
46
views
Java: "Couldn't find the target main class to run after checking the Java version" when running a popular .jar file to clean Git repository (BFG)
BFG REPO CLEANER
I am attempting to clean up a Git repository (remove passwords) using BFG repo cleaner:
https://github.com/rtyley/bfg-repo-cleaner/tree/master
https://rtyley.github.io/bfg-repo-...
0
votes
0
answers
38
views
How to deal with the conflicts of different libraries' version in different branches in pom?
I have a common dependency with different versions in different branches.
For example, its version name is dev-0.01 in the dev branch, uat-0.01 in the uat branch, prd-0.01 in the prd branch.
The ...
0
votes
1
answer
34
views
How to find the git repo of a mvn dependency
For security reasons I would like to scan the git repo of all dependencies I'm including in my Java/Kotlin projects. Problem is that I don't see a way to automatically find the git repo of the mvn ...
0
votes
0
answers
81
views
Issue with git-push, Maven Release Plugin, and authentication between pom and settings.xml file
I'm having an issue with authentication for maven release plugin that I've been dealing with for a bit. I'm trying to hide credentials by putting them in the settings.xml file, but it fails to ...
0
votes
0
answers
48
views
Unable to apply autoformat on precommit hook [duplicate]
I'm building a Pre-commit Git Hook script to apply code formatting with the help of Spring JavaFormat :
#!/bin/sh
./mvnw spring-javaformat:apply
When I commit an unformatted file, I notice the ...
0
votes
1
answer
18
views
'GibHub App' authentication with a maven style Jenkins build cannot perform maven release due to Auth failure
I am trying to use 'GibHub App' authentication with a maven style Jenkins build.
The initial check out works fine, but when I use the maven release:prepare release:perform feature, the build fails ...
0
votes
1
answer
170
views
How can I use the maven release plugin with a user that has @ in it?
I'm using Jenkins together with the release maven plugin.
My Jenkins job is a "maven" kind of job and is configured to :
git-clone the project with an identifier user@domain and access ...
0
votes
1
answer
270
views
Inside Azure DevOps Release pipeline, mvn release:prepare running into error with git symbolic-ref HEAD
I have configured a Release pipeline in Azure DevOps to create a release and deploy my application. When running mvn release:prepare --batch-mode, I keep running into
An error is occurred in the ...
1
vote
0
answers
111
views
Unable to install GitLab Maven Package Registry via Gradle
I have created a GitLab Maven Package Registry. In the build.gradle of the library module for which I have created the Maven Package Registry, I have added the publishing content like this:
publishing ...