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

  • Home
  • SEARCH
  • 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 8557829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:39:48+00:00 2026-06-11T15:39:48+00:00

I am attempting to do a release via the Maven release plugin and am

  • 0

I am attempting to do a release via the Maven release plugin and am having issues with the SCM config. I am using Eclipse with m2eclipse installed. We use Mercurial and on my machine (Win7) I have TortoiseHg installed. I have a test project that creates a jar. We make use of a super pom for our projects, so the test project pom does as well. I have set up this in the super pom:

<build>
    <plugins>
        ....
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-scm-plugin
            <version>1.6</version>
            <configuration>
                <connectionType>connection</connectionType>
            </configuration>
        </plugin>
    </plugins>
</build>

My test project pom looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
        http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>my.group</groupId>
    <artifactId>TestJar
    <version>1.0-SNAPSHOT</version>
    <parent>       
        <groupId>my.group</groupId>
        <artifactId>super-pom</artifactId>
        <version>1.0</version>
    </parent>
    <scm>
        <connection>
            scm:hg:ssh://our.scm.server:22//path/to/TestJarProject
        </connection>
        <developerConnection>
            scm:hg:ssh://our.scm.server:22//path/to/TestJarProject
        </developerConnection>
    </scm>
</project>

Note that we ssh to our SCM server. I suspect some of the issues I’m encountering my be related to this. I’ve only been able to find examples that use http.

In my settings.xml file, I added this:

<servers>
    ...
    <server>
        <id>our.scm.server</id>
        <username>username</username>
        <password>password</password>
    </server>
</servers>

When I run release:prepare release:perform, a TortoisePlink dialog pops up prompting me for a password. The dialog box is asking of “@our.scm.server’s password”.

It appears it is not using the username or password from the settings.xml file which is what I was expecting by adding the server element to it. Should it be? I have also tried adding my username to the connection url:

<connection>
    scm:hg:ssh://username@our.scm.server:22//path/to/TestJarProject
</connection>

but am still prompted for an empty username’s password.

QUESTION ONE

Has anyone successfully used ssh to connect to Mercurial while doing Maven releases?

Since I ultimately want to do the builds in Hudson, I set up a Hudson job to do the release but it fails with this error:

[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.\
   LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:\
   maven-release-plugin:2.0:prepare (default-cli) on project TestJar: Cannot \
   prepare the release because you have local modifications : 
[.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/_maven.repositories:unknown]
[.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/nms-super-pom-1.0.pom:unknown]
[.maven/repo/ca/shaw/eng/nms/nms-super-pom/1.0/nms-super-pom-1.0.pom.sha1:unknown]
... many, many more lines of this nature .....

QUESTION TWO

What local modifications is Maven encountering?

Since the project is being pulled from the repo, the only change I can think of is the update to the pom file (removing SNAPSHOT from the version). But Maven shouldn’t be complaining about this since it made the change itself, no?

UPDATE

As per khmarbaise’s suggestion, I’ve added this to my parent POM:

<pluginManagement>
    <plugins>
        <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.2.2</version>
        </plugin>
    </plugins>
</pluginManagement>
  • 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-11T15:39:50+00:00Added an answer on June 11, 2026 at 3:39 pm

    QUESTION ONE

    Has anyone successfully used ssh to connect to Mercurial while doing Maven releases?

    The answer appears to be that the Maven Release Plugin only works with https. We were able to get https working on our Mercurial server by generally following the instructions on this page:

    https://www.mercurial-scm.org/wiki/HgWebDirStepByStep

    QUESTION TWO

    What local modifications is Maven encountering?

    The local modifications are the .maven directory that is created during the build. By adding .maven/* to my .hgignore file, I was able to complete the build.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to understand how to build a multiple-application Erlang OTP release using Rebar.
I am attempting to deploy a Java application from Eclipse (Version: Indigo Release, Build
While attempting to link with QT 4.5 release, I run into this error message
Attempting to build a C# NPAPI plugin I have found a tutorial which describes
Attempting to use the data series from this example no longer passes the JSONLint
Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng
I am using Capistrano to deploy a ruby on rails project. I am attempting
I'm attempting to run the mvn release:prepare goal and it's hanging after the push.
I recently downloaded the latest stable release of Gnu Octave, and was attempting to
I'm attempting to make use of configuration transformations in a continuous integration environment. I

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.