Maven dependencies

Milton artefacts are now available from Maven Central repository https://repo1.maven.org/maven2/io/milton/ and you might want to add a property for the milton version:

    <properties>
        <milton.version>3.0.0.180</milton.version>
    </properties> 

Add the milton API as follows

        <dependency>
            <groupId>io.milton</groupId>
            <artifactId>milton-api</artifactId>
            <version>${milton.version}</version>
        </dependency>

 

 

To use the community edition runtime, add it as follows, including a SL4J runtime:

        <dependency>
            <groupId>io.milton</groupId>
            <artifactId>milton-server-ce</artifactId>
            <version>${milton.version}</version>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.6.1</version>
        </dependency>

To use the enterprise edition runtime, add it as follows. Note you must also get license files (free trial is available)

        <dependency>
            <groupId>io.milton</groupId>
            <artifactId>milton-server-ent</artifactId>
            <version>${milton.version}</version>
        </dependency>

Next Article:

Servlet Integration