Document more details about the deploy configuration for Maven Central
Change-Id: Ie1e3a4d0f3ca8a7e3a36efd729caac3eb6ed7121 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
parent
e5b4943e48
commit
5cc204e2ba
@ -3,13 +3,22 @@
|
|||||||
[[deploy-configuration-setting-maven-central]]
|
[[deploy-configuration-setting-maven-central]]
|
||||||
== Deploy Configuration settings for Maven Central
|
== Deploy Configuration settings for Maven Central
|
||||||
|
|
||||||
Gerrit Extension API Jar and the Gerrit Plugin API artifacts are stored on
|
Some Gerrit artifacts (e.g. the Gerrit WAR file, the Gerrit Plugin API
|
||||||
Maven Central.
|
and the Gerrit Extension API) are published on Maven Central in the
|
||||||
|
`com.google.gerrit` repository.
|
||||||
|
|
||||||
Prerequisites: Set up the Sonatype account (see link:https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-2.Signup[Sonatype
|
To be able to publish artifacts to Maven Central some preparations must
|
||||||
Maven Repository Usage Guide]) and put Sonatype user and password in
|
be done:
|
||||||
~/.m2/settings.xml:
|
|
||||||
|
|
||||||
|
* Create a Sonatype account as described in the
|
||||||
|
link:https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-2.Signup[
|
||||||
|
Sonatype OSS Maven Repository Usage Guide].
|
||||||
|
+
|
||||||
|
Sonatype is the company that runs Maven Central and you need a Sonatype
|
||||||
|
account for uploading artifacts to Maven Central.
|
||||||
|
|
||||||
|
* Configure your Sonatype user and password in `~/.m2/settings.xml`:
|
||||||
|
+
|
||||||
----
|
----
|
||||||
<server>
|
<server>
|
||||||
<id>sonatype-nexus-staging</id>
|
<id>sonatype-nexus-staging</id>
|
||||||
@ -18,11 +27,30 @@ Maven Repository Usage Guide]) and put Sonatype user and password in
|
|||||||
</server>
|
</server>
|
||||||
----
|
----
|
||||||
|
|
||||||
PGP key must be generated and published, see
|
* Request permissions to upload artifacts to the `com.google.gerrit`
|
||||||
link:https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven[How
|
repository on Maven Central:
|
||||||
To Generate PGP Signatures With Maven] for details. PGP passphrase can also be
|
+
|
||||||
put in ~/.m2/settings.xml:
|
Ask for this permission by adding a comment on the
|
||||||
|
link:https://issues.sonatype.org/browse/OSSRH-7392[OSSRH-7392] Jira
|
||||||
|
ticket at Sonatype.
|
||||||
|
+
|
||||||
|
The request needs to be approved by someone who already has this
|
||||||
|
permission by commenting on the same issue.
|
||||||
|
|
||||||
|
* Generate and publish a PGP key
|
||||||
|
+
|
||||||
|
Generate and publish a PGP key as described in
|
||||||
|
link:https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven[
|
||||||
|
How To Generate PGP Signatures With Maven].
|
||||||
|
+
|
||||||
|
Please be aware that after publishing your public key it may take a
|
||||||
|
while until it is visible to the Sonatype server.
|
||||||
|
+
|
||||||
|
The PGP key is needed to be able to sign the artifacts before the
|
||||||
|
upload to Maven Central.
|
||||||
|
+
|
||||||
|
The PGP passphrase can be put in `~/.m2/settings.xml`:
|
||||||
|
+
|
||||||
----
|
----
|
||||||
<settings>
|
<settings>
|
||||||
<profiles>
|
<profiles>
|
||||||
@ -39,9 +67,12 @@ put in ~/.m2/settings.xml:
|
|||||||
</activeProfiles>
|
</activeProfiles>
|
||||||
</settings>
|
</settings>
|
||||||
----
|
----
|
||||||
|
+
|
||||||
It can also be included in the key chain on OS X.
|
It can also be included in the key chain on OS X.
|
||||||
|
|
||||||
|
[[deploy-configuration-settings-xml]]
|
||||||
|
== Deploy Configuration in Maven `settings.xml`
|
||||||
|
|
||||||
Gerrit Subproject Artifacts are stored on
|
Gerrit Subproject Artifacts are stored on
|
||||||
link:https://developers.google.com/storage/[Google Cloud Storage].
|
link:https://developers.google.com/storage/[Google Cloud Storage].
|
||||||
Via the link:https://code.google.com/apis/console/?noredirect[API Console] the
|
Via the link:https://code.google.com/apis/console/?noredirect[API Console] the
|
||||||
@ -57,9 +88,6 @@ Jar.
|
|||||||
+
|
+
|
||||||
Bucket to store Gerrit Subproject Artifacts (e.g. `gwtjsonrpc` etc.).
|
Bucket to store Gerrit Subproject Artifacts (e.g. `gwtjsonrpc` etc.).
|
||||||
|
|
||||||
[[deploy-configuration-settings-xml]]
|
|
||||||
== Deploy Configuration in Maven `settings.xml`
|
|
||||||
|
|
||||||
To upload artifacts to a bucket the user must authenticate with a
|
To upload artifacts to a bucket the user must authenticate with a
|
||||||
username and password. The username and password need to be retrieved
|
username and password. The username and password need to be retrieved
|
||||||
from the link:https://code.google.com/apis/console/?noredirect[API Console]:
|
from the link:https://code.google.com/apis/console/?noredirect[API Console]:
|
||||||
|
Loading…
Reference in New Issue
Block a user