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

Hierarchical tag structure with maven releases

We have a bunch of smaller projects in a single SVN repository. The repository has the following structure: /trunk /artifactId1 /artifactId2 /groupId /artifactId3 /artifactId4 /branches ... see above /tags So it looks a bit…
elmuerte
  • 720
  • 5
  • 21
0
votes
1 answer

How should I configure my MAVEN project(s) in SCM?

Should I commit the ENTIRE codebase, as well as the POM(s), and have users check out projects one at a time for multiple maven projects, one of which contains several modules? Should I ONLY commit the POMs, and configure SCM information within each…
Sam Levin
  • 3,326
  • 7
  • 30
  • 44
0
votes
0 answers

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] git@gitlab.XXX.fr: Permission denied…
Clément Picou
  • 4,011
  • 2
  • 15
  • 18
0
votes
2 answers

maven scm:checkin error

My maven script generates a laconic "error 1", and I am a bit at a loss as to how to extract the root cause from the huge output. Could you help me in isolating said root cause for this error? Here is the command I used: mvn scm:checkin…
user958420
  • 1
  • 1
  • 1
0
votes
0 answers

Cheking out maven project from SCM doesn't work

Please help me out. I'm using this eclipse version. I have installed the m2e-egit connector as I have a git URL to import the project but when I tried to apply my URL I don't see the SCM type as shown in the picture below and yet the project…
0
votes
1 answer

How to skip unittests when using mvn scm:bootstrap

I'm trying to use the mvn scm plugin to check out the daily tag, and create an assembly from that version of the code. I configured the scm plugin and everythhing is working well, except that I can not seem to tell it to not run the unittests. I…
Rolf
  • 7,098
  • 5
  • 38
  • 55
0
votes
0 answers

How to configure maven to checkout multiple modules before module reactor fails

How should I configure maven parent pom to checkout code before Module list fails because the pom cannot be found. It seems the maven's reactor test for a module's pom occurs before the generate-sources phase when scm checkouts the projects with the…
garyM
  • 802
  • 2
  • 12
  • 29
0
votes
0 answers

How to use maven3 SCM:update-subprojects?

This may be a dumb question,and I cannot really find anything on the web or in apache's maven3 SCM documentation. I'm aggregating a jar from several modules. The aggregator is a peer/sibling of the other modules. At this point, making the aggregator…
garyM
  • 802
  • 2
  • 12
  • 29
0
votes
0 answers

Maven: Is it possible to pull and checkout local repository with remote repository?

If I execute mvn install for first time. It will create target folder under which git repository will be created. I want, if I execute mvn install on that project (without cleaning): If pom defines that repository with same branch then just git…
0
votes
0 answers

Maven: Is there any way to pull and checkout to specified branch of git repositories, if repository is already present on specified directory?

Can maven does following? Clone a repository with branch (Release-1.0) using maven-scm-plugin to specified target directory.(target/additional) Do not clean target directory and update pom.xml (clone same repository at same directory just change…
0
votes
0 answers

Maven-scm-plugin: Do not commit a file unless it has changed

I currently use the exec-maven-plugin to run a java class that aims to generate a text file as output. I commit then the resulted file to the git repository using the maven-scm-plugin. The issue here is that sometimes the generated file is similar…
Anas
  • 437
  • 6
  • 19
0
votes
0 answers

Git update failed using maven-scm-plugin

I've got a couple of problems with code update from GitLab repo using Maven SCM plugin. First, here's a part of my pom.xml with SCM and plugin configuration: http://path.to.my.repo
peterremec
  • 488
  • 1
  • 15
  • 46
0
votes
1 answer

Connect to GitLab with maven-scm-plugin

I'm new to Maven and I've just made some simple app. Now I'm trying to commit my code to GitLab repo and I ran into some problems. I'm using maven-scm-plugin and I just can't push my code to GitLab repo. part of pom.xml file:
peterremec
  • 488
  • 1
  • 15
  • 46
0
votes
1 answer

Maven Release Plugin Jenkins Keeps Copying Trunk into Tag instead of Branch

I need to release an older branch to satisfy a dependency that a different team have. The setup is through Jenkins using maven-release plugin. As the title suggests all goes well until it reaches the copy to tag phase in which instead of copying…
0
votes
1 answer

Maven SCM plugin and relative paths

My directory structure looks somewhat like this: .git src parent pom.xml submodule pom.xml addme.product My pom looks like this:
kutschkem
  • 7,826
  • 3
  • 21
  • 56
1 2 3
8 9