Questions tagged [maven-scm]

A plugin that allows you to perform Source Control Management operations through Maven.

Maven SCM Plugin

A plugin that allows you to perform Source Control Management common operations through Maven.

The SCM Plugin offers vendor independent access to common scm commands by offering a set of command mappings for the configured scm. Each command is implemented as a goal.

Official site : http://maven.apache.org/scm/plugins/

  • scm:add - command to add file
  • scm:bootstrap - command to checkout and build a project
  • scm:changelog - command to show the source code revisions
  • scm:checkin - command for commiting changes
  • scm:checkout - command for getting the source code
  • scm:diff - command for showing the difference of the working copy with the remote one
  • scm:edit - command for starting edit on the working copy
  • scm:status - command for showing the scm status of the working copy
  • scm:tag - command for tagging a certain revision
  • scm:unedit - command to stop editing the working copy
  • scm:update - command for updating the working copy with the latest changes
  • scm:validate - validates the scm information in the pom
127 questions
55
votes
1 answer

scm connection vs developerConnection

Can anyone tell me the difference between scm connection and developerConnection in maven? I am trying to build using mvn release:prepare and it requires either one of them. [ERROR] Failed to execute goal …
superigno
  • 994
  • 2
  • 12
  • 24
39
votes
1 answer

What is the usage of Maven pom.xml - element inside of when you are using git

We are using maven and git together for a Java project. In section, is automatically added by release plugin. For example, scm:git:http://myserver:7990/scm/project/test.git
mjlee
  • 3,374
  • 4
  • 27
  • 22
37
votes
4 answers

Externalising SCM credentials with Maven

Is there a method to externalize my SCM credentials so they are not stored in the project's POM? The problem being if they're contained in the project's POM, they will be visible to all when the project is deployed.
Kingamajick
  • 2,281
  • 1
  • 16
  • 19
18
votes
7 answers

Maven Buildnumber plugin - Git

The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working…
Walter White
17
votes
1 answer

Maven SCM Plugin: Git SSH provider not found

I'm having a problem using the Maven SCM plugin with Git. I cannot get the plugin to work at all because it says the provider is not found. It gives me the following error when I run mvn scm:tag: [ERROR] Failed to execute goal…
Philip Lombardi
  • 1,276
  • 2
  • 17
  • 26
11
votes
3 answers

How can I do a git pull in Maven?

I'm new to both maven and git and wanted to get some help in setting a project. Is there a way to define a goal in the pom to push/pull from git during linked to a maven phase? For example, can I pull from git during the maven install phase? If yes,…
user786045
  • 2,498
  • 4
  • 22
  • 18
10
votes
2 answers

maven scm plugin - what is the url config-value?

Question re. the Maven scm-plugin: http://maven.apache.org/scm/plugins/usage.html Example, in pom.xml: scm:svn:http://somerepository.com/svn_repo/trunk
Rop
  • 3,359
  • 3
  • 38
  • 59
9
votes
4 answers

Maven: How to deploy with deploy-file and custom wagon

I'm trying to use a custom maven wagon extension to deploy a jar to my own repository. Can I somehow configure in settings.xml that it recognizes the custom url scheme to be used with the specific wagon or do I have to always modify pom files to…
JtR
  • 20,568
  • 17
  • 46
  • 60
9
votes
1 answer

Using maven-release-plugin with GitHub "You can't push to git://github.com/..."

Recently having switched source code repository for a project to GitHub from SourceForge I need to update the maven release process to match. I followed this link for configuring the "scm" section of the pom. The GitHub repository is shown here.…
DataNucleus
  • 15,497
  • 3
  • 32
  • 37
8
votes
2 answers

Syntax of the pom.xml scm connection string

I'm cleaning up pom files in my project and find out I use two slightly different scm records: scm:git:https://github.com/jadler-mocking/jadler.git
Jan Dudek
  • 245
  • 1
  • 5
  • 8
7
votes
3 answers

Getting dependencies licenses

We need to get all the licenses of the dependencies of our services. While it's easy to get them from the report plugin (or mojohaus' license-maven-plugin) our lawyers want us to actually go to the source of each dependency and grab the license…
David Rabinowitz
  • 29,904
  • 14
  • 93
  • 125
6
votes
2 answers

Disable Maven SCM

Could I disable SCM integration option in Maven? I want it to build a local checked-out project without SCM integration ? is there some settings or some how?? thanx in advance
Moro
  • 2,088
  • 6
  • 25
  • 34
5
votes
8 answers

Why does mvn release:prepare fail while tagging?

With my multiproject pom I get an error while running release:prepare. There is nothing fancy about the project setup and every release-step before runs fine. The error I get is: [INFO]…
Roland Schneider
  • 3,615
  • 3
  • 32
  • 43
5
votes
1 answer

Maven: check for changes in scm

Is there a maven plugin which I can use to check if there was a commit since the project had been released the last time? I want to enforce people to keep up with the project documentation and therefore I want to check during the build process if…
dabuki
  • 1,011
  • 3
  • 11
  • 26
4
votes
2 answers

maven build execute svn get

I have a project build that needs to include files from another svn location during the build. I want to execute an svn get and then copy these files to the appropriate folder for the build. Researching this issue it seems I could use ant tasks but…
Barry
  • 1,800
  • 2
  • 25
  • 46
1
2 3
8 9