Release releases with Maven / Hudson / Mercurial

I am trying to make a release through the Maven release plugin and am having problems with SCM configuration. 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 use super-pom in our projects, so the test project is pom. I installed this in a super pump:

<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 pom test project is as follows:

<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>

Please note that we ssh to our SCM server. I suspect that some of the problems I am facing are related to this. I was only able to find examples that use http.

In my settings.xml, I added the following:

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

: release: , TortoisePlink, . "@our.scm.server".

, settings.xml, , . ? URL- :

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

- .

- ssh Mercurial Maven?

, , , :

[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 .....

Maven ?

, , , pom ( SNAPSHOT ). Maven , , ?

UPDATE

khmarbaise, POM:

<pluginManagement>
    <plugins>
        <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.2.2</version>
        </plugin>
    </plugins>
</pluginManagement>
+5
2

- ssh Mercurial Maven?

, Maven Release Plugin https. https, Mercurial, :

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

Maven ?

.maven, . .maven/* .hgignore , .

+2

, , ssh- , . / Mercurial.

EDIT: SSH Mercurial 2.4.1 , . URL SCM. :

scm:hg:ssh://user@hostname.com/path

, : , . - " ", .hgignore, .

0

All Articles