Table of Contents

Maven - Central Repository

About

The Central repository is the the default repository for Apache Maven but also for other build system such SBT.

This is hosted on a nexus repository manager server.

Management

http://search.maven.org/ Search the central repository

Deployment

Requirement

pom.xml

from http://central.sonatype.org/pages/requirements.html The pom.xml file must have the following:

<name>${project.groupId}:${project.artifactId}</name>
<licenses>
  <license>
    <name>The Apache License, Version 2.0</name>
    <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  </license>
</licenses>
<developers>
    <developer>
      <name>Nicolas GERARD</name>
      <email>[email protected]</email>
      <organization>Gerardnico</organization>
      <organizationUrl>https://gerardnico.com</organizationUrl>
    </developer>
  </developers>
<scm>
  <connection>scm:git:git://github.com/simpligility/ossrh-demo.git</connection>
  <developerConnection>scm:git:ssh://github.com:simpligility/ossrh-demo.git</developerConnection>
  <url>http://github.com/simpligility/ossrh-demo/tree/master</url>
</scm>

The artifacts that must be delivered are:

example-application.pom

example-application.jar

example-application-1.4.7-sources.jar

example-application-1.4.7-javadoc.jar

All files deployed need to be signed with GPG/PGP and a .asc file containing the signature must be included for each file. Ie this files need to be included.

example-application-1.4.7.pom.asc
example-application-1.4.7.jar.asc
example-application-1.4.7-sources.jar.asc
example-application-1.4.7-javadoc.jar.asc

Stats

Statistics about the size of the Central Repository are available at http://search.maven.org/#stats

After Registration

Configuration has been prepared, now you can:

Documentation / Reference