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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

Github Workflow Actions: [email protected]: Permission denied (publickey)

I'd like to setup a GitHub Action to Release and deploy to Maven Central. I tried several approaches but in the end it always fails with: Error: Failed to execute goal org.apache.maven.plugins:maven-...
Dave's user avatar
  • 119
1 vote
0 answers
31 views

how to configure CircleCI with custom yml or existing orb to release to github packages

Looking for existing solution to be able to release a java library to github packages, currently Im able to deploy(with snapshot) but now i want to be able to release a new version, this is the ...
daniel's user avatar
  • 13
0 votes
1 answer
16 views

Azure pipeline - error: pathspec 'main' did not match any file(s) known to git

I do get following error when running a release pipeline with maven-release plugin in background: Starting: Reattach detached head =====================================================================...
Splioo's user avatar
  • 430
1 vote
1 answer
157 views

maven release plugin: how to skip releasing of submodule

I have a multi-module project with one git-submodule, following structure <modules> <module>common</module> <module>first</module> <module>second</...
smacz76's user avatar
  • 11
1 vote
0 answers
78 views

How to build gitlab maven release stage using group level deploy tokens instead of deploy keys

I am using gitlab and built a maven release stage using deploy keys at project level. Now I have created a deploy key at group level and have got username/password for that deploy token. How do I ...
Roobal Jindal's user avatar
1 vote
1 answer
146 views

Is there a way to retain the SNAPSHOT suffix on build artifacts using Maven Release Plugin?

I am using the mvn-release-plugin in batch mode to release the artifacts to both production and lower environments. I would like the lower environments to always and push and pull from the Artifactory ...
Aneeb Khawar's user avatar
1 vote
0 answers
42 views

What am I doing wrong with the maven-release-plugin and exec-maven-plugin?

I would like to do something DURING the release:prepare step BEFORE the prepare release commit is made, such that my changes are included in the prepare release commit. It is a multi-module project ...
Victor Rodriguez's user avatar
0 votes
0 answers
67 views

Configuring pom.xml to push to AWS ECR

I need to setup pom.xml of my project that can push snapshot build images to the 'mutable enabled' ecr repo in AWS and once the maven release plugin is used the released image to be pushed to the '...
Valencia Serrao's user avatar
0 votes
1 answer
66 views

maven-release-plugin changes java version

I have a weird problem with the maven-release-plugin, because it somehow uses another java version as the one which is used for the execution of maven. My initial situation is a bit strange. So we are ...
Matthew Darton's user avatar
0 votes
0 answers
38 views

Jenkins Maven Release Plugin gives 'incorrect username/passsword supplied' Error

We have Jenkins Master server configured (Jenkins version 2.346.3) and having AWS ECS based deployments setup. And we have installed maven release plugin (version 0.15) in order to communicate with ...
Kalana Sangeeth's user avatar
0 votes
0 answers
100 views

Maven release plugin - how to release version with multiple classifiers

I have two profiles in my POM for two different classifiers of the same version, they just use different dependencies - eg. javax vs jakarta4. I configured my maven release plugin as follows: <...
JavaDuke's user avatar
0 votes
2 answers
77 views

Maven Release Plugin with custom repository layout, instead of default

I'm trying to set up Maven's Release plugin but my "repository" is just a directory on a Windows network share. There is a specific path to which the artifact must be copied, and I cannot ...
boobsbr's user avatar
  • 379
0 votes
0 answers
21 views

Maven Release plugin not working properly in Windows 10 but works fine on Macbook Pro

I have been happily using the mvn release:prepare command on my Macbook pro for some time and really like it. Unfortunately, due to circumstances, I need the projects to be maintained on a Windows 10 ...
Robert Voorn's user avatar
0 votes
0 answers
132 views

Maven release Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)

I'm trying to perform a mvn release:prepare command from a git bash console (on Windows 10) and I get the following error: [ERROR] Permission denied, please try again. [ERROR] [email protected]: ...
Clément Picou's user avatar
0 votes
0 answers
41 views

Does `mvn release:perform` delete the jars once it's done?

The Maven Release Plugin's last step is release:perform, which checks out the tag created by release:prepare (as defined by the release.properties file), compiles, tests and packages the code and then....
Wasabi's user avatar
  • 2,959
0 votes
0 answers
81 views

Maven release plugin error "The goal you specified requires a project to execute but there is no POM in this directory"

I have a maven project. When i try to release the project it gives me "The goal you specified requires a project to execute but there is no POM in this directory (C:). Please verify you invoked ...
şahin's user avatar
  • 15
0 votes
0 answers
27 views

maven-release-plugin: release commits should not be on the current branch

I'm trying to develop a release pipeline and the maven-release-plugin is 95% of what I want. What I'd like it to do is have the release commits (the ones tagged with v1.0.0 or whatever) not be part of ...
László Stahorszki's user avatar
0 votes
0 answers
242 views

Maven multi module project with git submodule: release perform fails

I have a Maven multi-module project. One of the module is a git submodule proj-root proj-module proj-submodule When I try maven release:prepare, the project fails. I have tried multiple ways but ...
Devloper's user avatar
0 votes
1 answer
224 views

How to check if dependency has snapshot using Github action

I have a maven project. I am replacing maven-release-plugin with maven ci friendly feature. But I want to check if any of the dependency in pom has snapshot version. If so want to fail the build for ...
MAK Ripon's user avatar
  • 1,061
0 votes
0 answers
67 views

Maven Release Plugin looking for settings file in wrong directory

I'm exploring using the maven-release-plugin with one of my projects. The issue is release:prepare fails with the error The specified global settings file does not exist: F:\f\.m2\repository Some time ...
Paul Stoner's user avatar
  • 1,377
0 votes
1 answer
119 views

Maven release avoid huge repository checkout

I try to release a maven project to the new version. Therefore I use mvn release:prepare release:perform To release that version is not a big deal. Unfortunately it is a big project and have more ...
Grim's user avatar
  • 2,122
0 votes
0 answers
133 views

How maven ci friendly bump up version in pom and prevent snapshot deploy

We are using maven release plugin to build deployable. While maven release plugin is slow as it does several things. There is an alternative way in maven from maven 3.5.0. Its maven ci friendly ...
MAK Ripon's user avatar
  • 1,061
0 votes
0 answers
230 views

Maven tag without release:prepare making branch changes

When running mvn release:prepare it's doing these: Check that there are no uncommitted changes in the sourcesPOMs Check that there are no SNAPSHOT dependencies Change the version in the POMs from x-...
seke's user avatar
  • 61
0 votes
0 answers
224 views

mvn release plugin won't update next dev version

I am performing a maven release using the release plugin. It works all fine and uploads my artifact as well but the final commit which is supposed to update the next development version is marking the ...
Arnav Sengupta's user avatar
2 votes
2 answers
2k views

Github Actions: Could not read Username for 'https://github.com' when maven-release-plugin runs release:perform

I'm trying to create a GitHub Actions workflow which releases my maven project (using maven-release-plugin) and pushes the (signed) artifacts to the central maven repository. The release:prepare step ...
meva's user avatar
  • 183
1 vote
1 answer
1k views

maven release plugin fails second time on gitlab

I setup a pipeline on gitlab but I get a weird error "You don't have a SNAPSHOT project in the reactor projects list" I'm just trying to deploy a java spring boot. Below the pom.xml (only ...
Gfalco's user avatar
  • 77
1 vote
0 answers
710 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 -...
TheTodler's user avatar
3 votes
1 answer
1k 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 ...
Mike Nakis's user avatar
  • 57.1k
1 vote
1 answer
925 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 ...
Johan's user avatar
  • 38.1k
0 votes
1 answer
556 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} -...
Giulio Pulina's user avatar
1 vote
0 answers
225 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 &...
Johann Goulley's user avatar
0 votes
1 answer
685 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....
Sybuser's user avatar
  • 805
3 votes
2 answers
1k 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 ...
kism3t's user avatar
  • 1,341
0 votes
0 answers
285 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 ...
JMBA's user avatar
  • 79
0 votes
0 answers
117 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 ...
Flumen's user avatar
  • 169
6 votes
1 answer
870 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 ...
Roberto Tyley's user avatar
0 votes
1 answer
572 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-...
a learner's user avatar
  • 315
0 votes
0 answers
1k 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 ...
Arun Kumar's user avatar
  • 6,654
2 votes
0 answers
111 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 ...
Peter Kronenberg's user avatar
4 votes
2 answers
745 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....
Peter Kronenberg's user avatar
0 votes
0 answers
302 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 ...
Nit's user avatar
  • 23
0 votes
1 answer
485 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:...
Saif's user avatar
  • 2,720
2 votes
2 answers
680 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 ...
nigelg's user avatar
  • 151
0 votes
0 answers
353 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</...
Harsha Chittepu's user avatar
0 votes
0 answers
709 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] ...
papanito's user avatar
  • 2,374
0 votes
0 answers
289 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 ...
yang's user avatar
  • 21
0 votes
1 answer
148 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 -...
PatS's user avatar
  • 9,253
0 votes
0 answers
221 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 ...
Daniel Ferber's user avatar
0 votes
2 answers
750 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 ...
J Fabian Meier's user avatar
0 votes
1 answer
1k 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 ...
Hamburml's user avatar
  • 295

1
2 3 4 5
18