Skip to content
Maven plugin for using the Moco stub framework.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.travis.yml add travis config Nov 14, 2014


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.