Maven - Central Repository

Card Puncher Data Processing

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:

  • a version that can be an arbitrary string and can not end in -SNAPSHOT.
  • a name. For instance:
<name>${project.groupId}:${project.artifactId}</name>
  • a description
  • a url
  • the license
<licenses>
  <license>
    <name>The Apache License, Version 2.0</name>
    <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  </license>
</licenses>
  • Developer info:
<developers>
    <developer>
      <name>Nicolas GERARD</name>
      <email>[email protected]</email>
      <organization>Gerardnico</organization>
      <organizationUrl>https://gerardnico.com</organizationUrl>
    </developer>
  </developers>
  • Scm
<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

  • The Library archive:
example-application.jar

  • The sources:
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





Discover More
Card Puncher Data Processing
Code Shipping - (Repository | Registry)

A repository is a storage location where artifacts are stored. repository of codeartifact (ie library, package,... The repository can be: local to your local computer remote Example: Maven Central,...
Gradle - Repository

in Gradle. A repository is a collection of modules, organized by group, name and version. Project.Repositories...
Card Puncher Data Processing
Maven - (Remote Repository|Server)

Remote repository in maven A remote repository (or server) can be defined as: a source to resolve dependency (via HTTP) or as a target to deploy the artifact (via SCP) The definition dependent on...
Card Puncher Data Processing
Repository Manager - Nexus

Nexus is a repository manager. Historically Nexus Repository Manager started as a repository manager supporting the Maven repository format. They are hosting the default one of Maven Docker to...



Share this page:
Follow us:
Task Runner