Getting JSesh sources and installing them as libraries

Suppose you want to use JSesh as a library in your own maven projects. You want the JSesh jars available, and I don't want to maintain a maven repository (too large for me on my own servers, and external servers may change).

Here is a way to do it (taken from a bit of the Ramses project). The following pom.xml file, when used in a maven project, will cause the download and install of a specific revision of JSesh.

If it doesn't work, check the mercurial server. I had problems when I tried this system again, because the server had changed.

The bit you might want to change is "release-5.6", which should be the TAG (mercurial TAG) for the release you want to use. For recent releases, it should be "release" + version.

With the following file saved as "pom.xml", all you need to do is to type "mvn" in the folder (use an empty folder for this).

<?xml version="1.0"?>
<project
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
    xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>jsesh-lib</artifactId>
    <groupId>org.qenherkhopeshef</groupId>
    <version>1</version>
    <name>jsesh-lib</name>
    <packaging>pom</packaging>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <scm>
        <connection>scm:hg:http://hg.code.sf.net/p/jsesh/mercurial</connection>
    </scm>

    <build>
        <defaultGoal>clean scm:bootstrap</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-scm-plugin</artifactId>
                <version>1.8.1</version>
                <configuration>
                    <scmVersion>release-5.6</scmVersion>
                    <scmVersionType>tag</scmVersionType>
                    <goals>install</goals>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>