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.
Articles Related
Management
Search
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 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:
- The pom
example-application.pom
- The Library archive:
example-application.jar
- The sources:
example-application-1.4.7-sources.jar
- The doc:
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:
- Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
- Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
- Promote staged artifacts into repository 'Releases'
- Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
- Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging