/maven-decentral

Andrew Clegg's maven repository

maven-decentral

Snapshots are in the snapshots branch, releases are in the releases branch.

Using maven-decentral in your project

Add the wagon-git repo as a plugin repository:

<pluginRepositories>
  <!-- ... -->
  <pluginRepository>
    <id>synergian-repo</id>
    <url>https://raw.github.com/synergian/wagon-git/releases</url>
  </pluginRepository>
  <!-- ... -->
</pluginRepositories>

Then add the following to your project's pom.xml, in the <repositories> section:

<repositories>
  <!-- ... -->
  <repository>
    <id>maven-decentral-releases</id>
    <name>Maven Decentral - Andrew Clegg's Maven Releases</name>
    <releases>
      <enabled>true</enabled>
    </releases>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
    <url>https://raw.githubusercontent.com/andrewclegg/maven-decentral/releases</url>
  </repository>
  <!-- ... -->
</repositories>

To enable snapshot downloads, add the following too:

<repositories>
  <!-- ... -->
  <repository>
    <id>maven-decentral-snapshots</id>
    <name>Maven Decentral - Andrew Clegg's Maven Snapshots</name>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
    <url>https://raw.githubusercontent.com/andrewclegg/maven-decentral/snapshots</url>
  </repository>
  <!-- ... -->
</repositories>

Note to self

To deploy to it, include this:

<distributionManagement>
  <repository>
    <id>maven-decentral-releases</id>
    <name>Maven Decentral - Andrew Clegg's Maven Releases</name>
    <url>git:releases://git@github.com:andrewclegg/maven-decentral.git</url>
  </repository>
  <snapshotRepository>
    <id>maven-decentral-snapshots</id>
    <name>Maven Decentral - Andrew Clegg's Maven Snapshots</name>
    <url>git:snapshots://git@github.com:andrewclegg/maven-decentral.git</url>
  </snapshotRepository>
</distributionManagement>

TODO

Fork wagon-git and host it here, so we're completely self-sufficient.