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
3
votes
2 answers

Maven Release: Prepare/Perform after Rollback incorrectly succeeds with wrong content

We use Maven with Subversion internally. We also use Maven's Release plugin. We noticed the issue described below when running through the following (correct, I presume) steps. 1. We run release:prepare: Maven updates the trunk version to…
Mihai Danila
  • 2,229
  • 1
  • 23
  • 28
3
votes
1 answer

How do I specify the commit message in the pom when using scm-maven-plugin?

I'm trying to use the maven SCM plugin to commit some files to a git repo during an automated build, the plugin requires a commit message to be set as a system property, I don't want to have to pass this on the command line (I'm also using the…
Helder Roem
  • 474
  • 5
  • 13
3
votes
2 answers

How do I checkout artifact sources given its coordinates in Maven?

I'm about to write a tool with which our developers can checkout sources for an artifact given its maven coordinates. The tool should be able to optionally checkout sources recursively for all SNAPSHOT dependencies as well. My first question would…
Spotty
  • 73
  • 4
2
votes
2 answers

maven release:prepare FAILS due to 1.7 svn working copy (expects 1.6)

I have had it up to HERE with maven! I finally get things working and running, and then I have attempted to do my first maven release:prepare using an external maven runtime THROUGH m2eclipse. Here is the issue I am experiencing: [ERROR] Failed to…
Sam Levin
  • 3,326
  • 7
  • 30
  • 44
2
votes
2 answers

How to setup Maven to connect with CVS using public key authentication?

I have a section in a POM that looks something like this: scm:cvs:ext:myhostname:/cvsroot/repo:module_name I typically use publickey auth to authentication against this cvs server, although it should…
matt b
  • 138,234
  • 66
  • 282
  • 345
2
votes
1 answer

using Maven SCM tag with Perforce

Does anyone have examples on how to configure the Maven SCM tag for perforce?
Mike Pone
  • 18,705
  • 13
  • 53
  • 68
2
votes
1 answer

Why does Maven SCM plugin require connection/developerConnection?

I am writing a plugin which copies some of the behaviour of the Maven SCM plugin and I was wondering: Why can't the Maven SCM plugin just use the remote "origin" setting from the .git/config? Why does it require setting…
helpermethod
  • 59,493
  • 71
  • 188
  • 276
2
votes
2 answers

Setting the developerConnection for the Maven Release Plugin from the command line

I am currently trying to configure the Maven Release Plugin for our build server. For that I am trying to set the through the command line. I read that project.scm.developerConnection is the command line…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
1 answer

maven scm url generate

Currently doing some refactoring. Consolidating modules and creating new ones. Is there a way for Maven to generate the scm urls for each maven module rather than me going thru each module manually?
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
2
votes
0 answers

maven release with multi module project and main pom in sub-directory

I'm working on a project, which originally was set up by a different author. Each module has its own directory. Also the main pom (my-project-pom), which includes the modules, is stored in a separate sub-directory. We're using subversion: +--…
fishbone
  • 3,140
  • 2
  • 37
  • 50
2
votes
1 answer