Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8345783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:47:43+00:00 2026-06-09T06:47:43+00:00

I love using Maven and distributed SCMs like Mercurial (BitBucket). However as I bring

  • 0

I love using Maven and distributed SCMs like Mercurial (BitBucket).

However as I bring my project to scale and my Hg repository grows, I am finding the Maven Release plugin more and more cumbersome to work with.

The primary problem is that when a mvn release:prepare is called Maven doesn’t take advantage of the distributed nature of Hg and performs a full clone of the entire repository to put into a temporary directory.

The issue is very well documented by Fabrizio Giudici back in 2009
http://weblogs.java.net/blog/fabriziogiudici/archive/2009/10/29/fixing-two-problems-maven-mercurial-hudson

I would have thought Sonatype might have updated the plugin by now, but alas we are still having to download the entire repo prior to releasing.

I was hoping to reach out to the StackOverflow community to see if anyone else was experiencing this problem and whether anybody has come up with novel ways of solving the dreaded full clone upon a maven release.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:47:45+00:00Added an answer on June 9, 2026 at 6:47 am

    This is what I do to avoid the silly multi push to mercurial with maven:

    First make sure you use the correct version of the plugin handling the mercurial type of scm via:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
            <tagNameFormat>@{project.version}</tagNameFormat>
        </configuration>
    </plugin>
    

    then execute first the prepare goal

    mvn release:prepare -DautoVersionSubmodules=true -DreleaseVersion=x.x.x -DdevelopmentVersion=y.y.y-SNAPSHOT -DpushChanges=false
    

    note the pushChanges=false attribute

    if all ok then
        hg push
        mvn release:perform
    else
        mvn release:clean
        and have fun removing the changeset from local hg repo
    endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really love using Bitbucket or Github however I am often offline and unable
I have a c# windows form project using watin. I would love to attach
I love using GDB withing emacs. And I most like the configuration that I
I love using OneNote, however I want more control over the locations of my
I love using the MS fonts for Vista, they're great. However they're several points
I enjoy using NetBeans, especially for development with Maven, however, I've found recently that
I love using an IDE, because I get some great productivity gains. However, I
I love RGoogleDocs and use it a lot. However, I don't like entering my
I've been using jQuery tabs and I love it. However, if I want to
I've just started using Optimizely, and really love it. However, I need to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.