Questions tagged [maven-scm-plugin]
26 questions
8
votes
2 answers
mvn release:perform fails because pom file is not at root of repository
I am trying to execute mvn release:perform, but the command assumes that the pom file is at the root of the repository. Is there a system property or preference that I can set to override the default?
The call to mvn release:prepare seems to have…

Andrew Eisenberg
- 28,387
- 9
- 92
- 148
6
votes
4 answers
Configuring Perforce scm into maven project to get latest changelist
I am migrating a project to Maven and as we were used to always reference our builds by the latest change number in our Perforce SCM repository, I would like to be able to extract this information
I am trying to configure Maven scm plugin via…

Gurvan
- 741
- 1
- 9
- 22
5
votes
1 answer
When using maven-release-plugin, why not just detect scm info from local repo?
As far as I am aware, in order to use the maven-release-plugin, you have to drop in an scm section into your POM file. E.g.:
scm:hg:ssh://hg@bitbucket.org/my_account/my_project
…

Marc Swingler
- 181
- 10
3
votes
0 answers
Using Maven scm:checkin to commit changes to module projects
I have a multi-module POM file:
...
../project1
../project2
../project3
...
...
Each of the modules is itself a Maven project with its own POM. Inside each of these…

D.B.
- 4,523
- 2
- 19
- 39
3
votes
1 answer
Maven release plugin shows plaintext password on git push error
I'm running
mvn release:prepare -Dusername=myuser -Dpassword=mypassword
and see lines in output:
[INFO] Executing: cmd.exe /X /C "git push https://myuser:********@myserver.com:8081/scm/project/project.git refs/heads/master:refs/heads/master"
but…

Vasilii Ruzov
- 554
- 1
- 10
- 27
2
votes
1 answer
Maven scm add to repository name of submodule
I have a java application. It is built using maven, and it has parent and sub-modules.
I need to push the commit release number to git when the app builds successfully.
Here are my POMs:
Parent pom.xml

Vladimir Konchakovsky
- 31
- 1
- 5
2
votes
1 answer
How Jenkins is passing username and password credentials for checkout pull operations
I have Jenkins / Mercurial latest versions. Machine is Red Hat Linux 6.6.
I'm using Release plugin in Jenkins. Maven plugins (maven-scm-plugin, maven-version-plugin and maven-enforcer-plugin) for doing release process on a project. All of these…

AKS
- 16,482
- 43
- 166
- 258
2
votes
1 answer
Maven - Mercurial/Svn - svn/hg tag failed with exit code 255
I'm using Mercurial (hg) as my source control tool and Maven as build system.
While performing release process (using versions-maven-plugin: versions:set -Dxxx=yyy versions:use-releases xxxxx yyy targets), I got valid pom files to perform a valid…

AKS
- 16,482
- 43
- 166
- 258
2
votes
1 answer
Maven Release Plugin throws svn : '' is not a working copy
I have a mavenized project and when I try to do a release, I get the below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4
.2:prepare (default-cli) on project SimpleWeb: Unable to check for local…

Vijay
- 61
- 2
- 5
2
votes
1 answer
maven release plugin hanging
I'm trying to release a CVS project with the mvn release plugin.
I've succeeded with mvn release:prepare but when I run release:perform it hangs due to what seems to be a leading slash on the CVS module
/cust/shared_code
[INFO] [release:perform…

James Morgan
- 467
- 1
- 6
- 17
1
vote
1 answer
Configure maven-release-plugin to push version changes to git repository?
When releasing an artifact with maven-release-plugin, the changes made to the artifact version are local and not pushed to the remote git repository.
The following is the configuration I used for the maven-release-plugin:
…

Bionix1441
- 2,135
- 1
- 30
- 65
1
vote
0 answers
How can I connect maven-scm-plugin with GitLab Ci via HTTPS?
We build our project with maven and use GitLab Ci to deploy it into our nexus repository. The live deployment is done by another team which requested to receive the "scmCommitId" to check, if the correct version is deployed. Therefor we must…

mueckehro
- 11
- 1
1
vote
1 answer
Configure Maven scm plugin to use serverID from settings.xml
I have a settings.xml file with some servers set:

bryce
- 842
- 11
- 35
1
vote
0 answers
Committing an additional file during Maven Release: What if we need to add it to version control first?
Is there a known way to commit changes to an additional file during the Maven Release, and also add that file to version control if it's necessary?
We have a resource file that is potentially changed during our build process, and we want to commit…

user1246225
- 31
- 2
1
vote
1 answer
Using the maven-scm-plugin with git without storing a password in plaintext
I need to use the maven-scm-plugin to export/checkout (the default branch of) a repository on github. I can get this working if I hard-code the username/password somewhere, but I can't get it to use ssh keys or the local filesystem password…

user3550496
- 333
- 5
- 14