Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Maven plugin for using the Moco stub framework.
branch: master


This is a simple Maven plugin for managing a Moco server. It can be used to consistently run a Moco server on demand or to automatically launch the server during some part of the Maven lifecycle (such as integration-test).

Build Status


To get started, add the plugin to your pom.xml.


You may also need to add the Sonatype repository, depending on your environment.


Running manually

Starting the server manually is easy! Simply run the following command:

mvn com.garrettheel:moco-maven-plugin:run

This will run the the server indefinitely until the process is terminated.

Running during the maven lifecycle

You can also configure maven to start and stop the Moco server during the build lifecycle. For example, the following configuration would support using the server for integration testing:

    <!-- ... -->
Something went wrong with that request. Please try again.