Questions tagged [maven-release-plugin]
The Apache Maven Release Plugin is used to create releases with Maven. The release plugin will automatically create tags in the VCS etc.
859
questions
0
votes
0
answers
26
views
Maven Release Plugin: Passing arguments to jib via command line does not work
I migrated from Maven Release Plugin 2.5.1 to 3.0.0-M5.
I added jib:build as goal of release:perform.
Using version 2.5.1 I had no problem to pass arguments via -Darguments="-Djib.to.image=image -...
0
votes
0
answers
52
views
maven warning "Ignoring unrecognized line ?? release.properties"
I recently created a github workflow which makes a maven release. I am done fixing the errors, now I am working on fixing the warnings. One of the warnings reads as follows:
Warning: Ignoring ...
1
vote
1
answer
44
views
Push to github rejected with maven-release-plugin
I've spent hours trying to release a project to github with Maven. This is usually not a problem but for some reason it is for this project and I don't understand why. I'm using Maven 3.8.5 with Java ...
0
votes
0
answers
44
views
Maven plugin use latest versions and commit POM to Git
When I execute below Versions Maven Plugin command in my Maven project :
mvn versions:use-latest-versions
The pom.xml is updated with updated dependencies as it is supposed to do. However, Versions ...
0
votes
0
answers
60
views
Can't add arguments when running the npm goal from maven-frontend-plugin in the command line
I have this execution that is working perfectly when i run it from the pom.xml:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</...
0
votes
1
answer
46
views
Accessing released version using Maven Release
I'm building a custom pipeline in Jenkins, where I'm invoking Maven Release plugin and I would need to store the released artifact version.
Command run on Jenkins:
sh 'mvn -Dusername=${GIT_USERNAME} -...
0
votes
0
answers
21
views
CI commits for Maven release
The Maven Release Plugin usually makes two commits when building a release (assume version is 1.0.0-SNAPSHOT):
First to replace the version 1.0.0-SNAPSHOT by 1.0.0 (we added a convenience function ...
0
votes
0
answers
7
views
Maven-Release Plugin - Tag Format - Appending Date to the tagformat
I would like to append Date or any variable which is coming from Jenkins user parameters to the tagnameformat while using release:prepare release:perform.
Is there a way to do this?
1
vote
0
answers
56
views
Can't get system parameter from custom maven MOJO
I try to get the value of a system property in a custom maven MOJO, like described here : https://maven.apache.org/developers/mojo-api-specification.html.
The property which I try to get the value is &...
0
votes
0
answers
104
views
package edu.emory.mathcs.backport.java.util does not exist
I updated
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5....
0
votes
0
answers
62
views
Jenkins Pipeline and Maven Release (+ SCM )configuration
We have a Jenkins server and we're using the Bitbucket Branch Source plugin to trigger builds. The project wants to use Maven Release plugin, which will do commits back to the source automatically. ...
2
votes
0
answers
32
views
How to configure azure pipeline trigger for maven release plugin?
I want to automate the nexus release process by using the maven release plugin in my azure devops pipeline. However, I have an issue with the maven release plugin, because of it's tendency to make 2 ...
0
votes
0
answers
242
views
How do I deploy to Github packages with maven release plugin an Github workflow?
Some time ago, I posted a question on how to deploy to Github packages with the maven release plugin: How do I push a release to github with the maven release plugin?
I was running the mvn release ...
0
votes
1
answer
94
views
Is the distributionManagement element really needed with the maven release plugin?
I assumed for a long time that the distributionManagement tag was required for the maven release plugin because it needs to know where to upload the released artifacts.
But to some extent this is true....
3
votes
2
answers
261
views
Azure Pipeline maven release:perform fails with "The git-clone command failed."
currently, I try to build a spring boot application and make releases with Azure Pipelines and maven-release-plugin.
My Azure Pipeline YAML Looks like this:
- stage: BuildRelease
condition: true
...
0
votes
0
answers
47
views
maven release plugin fails with timeout from git
I get the below error while doing mvn release:perform. Seems like its a timeout issue while cloning the project into target/checkout folder. Am not sure how to solve the issue.
I did git clone ...
0
votes
0
answers
65
views
Generate Jacoco Code Coverage on Prepare Goal of Maven Release Plugin
We do mvn release:prepare on pull request to check if everything works and we wanted to add SonarQube check at the end as well. However, when we run this goal, we get 0 code coverage as Jacoco doesn't ...
0
votes
0
answers
40
views
Maven Release Plugin - Specify Java Home to be used in nested Maven invocations
Context
I have a project in Java 8 that uses some libraries that don't exist on newer versions. I want to make a release using the Maven Release Plugin, with the command mvn release:prepare. I'm ...
4
votes
0
answers
237
views
API/Metadata to find the release date of a Maven artifact?
Given the Maven coordinates (group, artifact, version) of an arbitrary released artifact that you're capable of resolving, (an artifact which may or may not have been sent to Maven Central - could ...
0
votes
1
answer
162
views
Perform Maven Release with dry-run checkbox from jenkins
Need to Trigger "Perform Maven Release" of other job by using command smthing like this
curl 'https://192.10.160.105/jenkins/view/job/mavwn/m2release/'
-H 'Content-Type: application/x-...
0
votes
0
answers
248
views
Maven version ranges : release vs snapshot version
With Apache Maven 3.3.9, We are using maven ranges for some dependencies version resolution as there are a lot of maven modules in my application an keeping the specific dependency version and ...
1
vote
0
answers
37
views
Creating branch from a tag with maven release plugin
What is the correct process for using release:branch to create a branch from a tag in order to create a Hotfix? If I just checkout the tag, the plugin complains because I have a detached Head. If I ...
3
votes
2
answers
216
views
How to release Hotfix with maven release plugin
I'm using the Maven release plugin to do my releases. But I can't figure out how to get it to do a Hotfix release.
I'm getting the error
You don't have a SNAPSHOT project in the reactor projects list....
0
votes
0
answers
138
views
mvn release:prepare not committing changes
I am trying to release my project using maven release:prepare command. My code resides in gitlab and I have provided my project url in the pom.xml but while trying to update in Git it fails. Could ...
0
votes
0
answers
87
views
How to only bump up the maven project version on git with maven release plugin?
I want to automatically bump up the version, such that on each release a new version is tagged on the commit and the main branch is set to the next SNAPSHOT version.
The usual release:prepare, release:...
0
votes
0
answers
113
views
Maven Release Plugin -DscmCommentPrefix Azure Devops
I have configured the following task in an Azure Build Pipeline
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: '...
0
votes
0
answers
71
views
What should be the git-flow for updating develop branch version after running Maven Release Plugin on master branch?
I am implementing maven release plugin to deploy my master branch.
During deployment,
(current master version 1.1-SNAPSHOT, releasing 1.1)
1 commit with version-1.1 created in master
1 tag with ...
1
vote
1
answer
239
views
maven release:perform failing to even try to generate javadoc or sources
Since moving to Java 11 quite a while ago now, the maven release plugin fails to generate javadoc alongside the built artifact. My configuration for both in parent pom (and compiler plugin, in case ...
0
votes
0
answers
50
views
Azure artifacts limited to 500Mb
I have similar issue to that described in
How to handle Azure Devops 500 MB file size limit (Maven Packages)?, but that's a few years old and I'm hoping there's a workaround.
I have some jar files ...
0
votes
0
answers
91
views
Update properties during maven release:prepare
I have a maven project, where the POM file looks like below.
<project>
<groupId>foo</groupId>
<artifactId>bar</artifactId>
<version>2.3-SNAPSHOT</...
0
votes
0
answers
295
views
maven-release plugin fails to create a release if parent pom uses ranges
I have a single module project, which I can create releases using maven-release-plugin
16:13:52 [INFO] Run maven with 'release:prepare release:perform -B -U -e -Dresume=false'
...
16:13:56 [main] ...
0
votes
0
answers
55
views
Should the jar file contain dependencies
We're going to run a project with the java -jar ABC.jar command.
Now we have the situation that ABC.jar depends on many other jars, such as log4j, spring,mybatis, etc......
With maven, we can package ...
0
votes
1
answer
70
views
Where is documentation for prior releases of maven-release-plugin? I'm looking for version 2.8.2
I'm trying to find out if the maven-release-plugin uses the string release.arguments or arguments to pass additional arguments to the maven release plugin. For example,
mvn release:perform -...
0
votes
0
answers
74
views
Maven Relase Plugin - Correct URLS for each git protocol
Our ancient build uses Maven Relase Plugin to automatically increment the pom.xml version number and push this change back to git hosted at our gitlab instance. This build stopped working.
After some ...
0
votes
1
answer
299
views
Ignore ${project.version} in Maven release:prepare
We have projects that are built one after another in the build server. They probably could become a multi-module project in the future, but at the moment there is no capacity for restructuring the ...
0
votes
1
answer
553
views
How to add a goal to release:perform phase of maven-release-plugin
I use the swagger-maven-plugin from kongchen. Additionally I use the maven-release-plugin. The swagger.json which is generated from swagger-maven-plugin is not part of the repo. If I build the ...
0
votes
0
answers
68
views
Build not performed for all projects in release of multi-module Maven projects
I'm having an issue with build during release of multi-module Maven projects. I have this structure:
parent
|-- potato
|-- lettuce
|-- raddish
and I want to release projects potato and lettuce. (They ...
0
votes
0
answers
39
views
How to store the released version of a project in a specific property?
We have a build scenario that has turned out to be too complex for Maven and maven-release-plugin and I'm at the end of my wits.
My team deals with a portfolio of applications that all use a ...
0
votes
1
answer
215
views
How to update version in non pom files using maven release plugin
I've a maven project and I'm using the maven-release-plugin to prepare the release.
When I run the mvn --batch-mode release:prepare command, it creates two commits as follows
(HEAD -> develop) [...
0
votes
1
answer
94
views
How does Maven dependency resolution work when using released artifacts?
I have a multi-module Maven project that looks like:
Reactor -> type pom
All -> type zip
Scripts -> type zip
Resources -> type zip
Frontend -> type pom
JarFile -> type jar
...
-1
votes
1
answer
108
views
What does the Maven well known qualifier of sp stand for?
I have read several good articles on the Maven versioning with well known qualifiers. However, I found it interesting that after the so called 'final' release which is an empty qualifier, ga, or ...
0
votes
1
answer
116
views
How to release:perform with git-crypted files
I used git-crypt (https://github.com/AGWA/git-crypt) to encrypt a property file containing sensitive data (passwords etc.) in my Java Maven project.
Preparing of the release run without problems.
But ...
1
vote
1
answer
188
views
Maven release plugin scmReleaseCommitComment parameter
I am using maven release plugin for automated releases from Jenkins without any Jenkins-plugins. Release commit, tag and development commit are created in Git and released project is deployed to Nexus....
0
votes
2
answers
271
views
Maven release plugin - how to publish only a snapshot?
I'm using maven release plugin to deploy new versions of software.
When running
mvn release:prepare
mvn release:perform
Everything works as expected.
If I tell maven to release version 2.1, it ...
0
votes
1
answer
58
views
Not able to upload artifact in JFrog using maven-release-plugin from Jenkins
I am using Jenkins to build my project. I am using "maven-release-plugin" and "release plugin", both plugins has been installed in Jenkins. We are getting below error message while ...
0
votes
1
answer
669
views
Is maven release plugin following conventional commit format?
I am planning to configure semantic versioning for maven project and for CI. Is maven release plugin following conventional commit format? So it will increase the major.minor.patch as per commit ...
0
votes
0
answers
243
views
How to trigger maven snapshot build after maven release build
After performing a Maven release build using the release-plugin, I would like to automatically start a maven build to create the new snapshot artifacts.
We are not using Jenkins pipelines, just a ...
2
votes
1
answer
701
views
Maven release:perform on azure pipeline fails as it can't read password for the repo
I have a parent pom where I have used maven-release-plugin, with the artifact that needs to be pushed to Azure artifacts. I was able to make it work on my local, and now am trying to automate it using ...
0
votes
0
answers
252
views
Unable to tag SCM maven release plugin goal execution from docker container
We have used Source code checkout task in bamboo and for executing maven goals we used docker container so we mounted build-dir from agent to docker using docker volume mount.
We have used maven-...
1
vote
1
answer
149
views
Jenkins git push command takes forever
for presentation purposes i do have jenkins server (ver. 2.190.1) installed on my windows 10 and my localhost is node as well.
When it comes to the mvn release:prepare stage it takes forever on git ...