Using Sandbox Plugins

Unlike production or pre-release plugins, sandbox plugins are not deployed to the Maven central repository and as such are not available out of the box. The following steps outline how to setup your environment to access these plugins, too.

Snapshot Repository

Most plugins are available via the snapshot repository. To access them, add the following to your pom.xml:

  <repositories>
    <repository>
      <id>Codehaus Snapshots</id>
      <url>http://nexus.codehaus.org/snapshots/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>Codehaus Snapshots</id>
      <url>http://nexus.codehaus.org/snapshots/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>  <!-- Workaround for MNG-2974, see note below -->
      </releases>
    </pluginRepository>
  </pluginRepositories>

or add a profile in your settings.xml:

  <profiles>
    <profile>
      <id>Snapshots</id>
      <repositories>
        <repository>
          <id>Codehaus Snapshots</id>
          <url>http://nexus.codehaus.org/snapshots/</url>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <releases>
            <enabled>false</enabled>
          </releases>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>Codehaus Snapshots</id>
          <url>http://nexus.codehaus.org/snapshots/</url>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <releases>
            <enabled>true</enabled>  <!-- Workaround for MNG-2974, see note below -->
          </releases>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>Snapshots</activeProfile>
  </activeProfiles>

You might wonder why the download of release versions from the plugin snapshot repository has been enabled although this repository actually only contains snapshot versions. This is workaround for MNG-2974 which currently prevents to resolve snapshot versions of plugins when they are invoked directly from the command line.

Building Plugins

To build a plugin, check out the source. Then add the repositories shown above so that parent versions can be retrieved. Cd into the source folder and run "mvn install".