This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sis-site.git
The following commit(s) were added to refs/heads/main by this push:
new 78d55766 Add instruction about Maven deployment (for the parent POM).
78d55766 is described below
commit 78d557662ebeb692678dfd460c9b1993522918ef
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Fri Oct 6 02:13:34 2023 +0200
Add instruction about Maven deployment (for the parent POM).
---
content/release-management.md | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/content/release-management.md b/content/release-management.md
index 0e261a64..6ac4fab4 100644
--- a/content/release-management.md
+++ b/content/release-management.md
@@ -173,6 +173,24 @@ asfNexusPassword=<password for uploading to Maven Central>
{{< / highlight >}}
+## Maven configuration
+
+Edit the `~/.m2/setting.xml` file, making sure that the following fragments
are present.
+Note that the [password can be
enctypted](https://maven.apache.org/guides/mini/guide-encryption.html).
+
+{{< highlight xml >}}
+<settings>
+ <servers>
+ <server>
+ <id>apache.releases.https</id>
+ <username>login for uploding to Maven Central</username>
+ <password>password for uploading to Maven Central</password>
+ </server>
+ </servers>
+</settings>
+{{< / highlight >}}
+
+
# Configure {#configure}
For all instructions in this page, `$OLD_VERSION` and `$NEW_VERSION` stand for
the version
@@ -439,15 +457,19 @@ git commit --message "Update javadoc for SIS
$NEW_VERSION."
This section publish artifacts to the staging repository.
+
### Stage the parent POM
Execute the following:
{{< highlight bash >}}
cd $SIS_RC_DIR/parent
-mvn install deploy
+mvn clean install deploy --activate-profiles apache-release
{{< / highlight >}}
+Connect to the [Nexus repository][repository], select the staging repository,
+navigate to the `parent` sub-directory, and delete all
`parent-*-source-release.zip` files.
+
### Stage the project arfifacts
@@ -461,13 +483,17 @@ git status # Make sure that everything is clean.
gradle clean
gradle test --system-prop org.apache.sis.test.extensive=true
gradle assemble
-gradle assemble --system-prop org.apache.sis.releaseVersion=$NEW_VERSION
--rerun
+rm endorsed/build/docs/* # For forcing a rerun.
+gradle assemble --system-prop org.apache.sis.releaseVersion=$NEW_VERSION
gradle publishToMavenLocal --system-prop
org.apache.sis.releaseVersion=$NEW_VERSION
ll ~/.m2/repository/org/apache/sis/core/sis-referencing/$NEW_VERSION
find ~/.m2/repository/org/apache/sis -name "sis-*-$NEW_VERSION-*.asc" -exec
gpg --verify '{}' \;
+
+gradle publish --system-prop org.apache.sis.releaseVersion=$NEW_VERSION
{{< / highlight >}}
+
### Stage the non-free resources {#maven-nonfree}
Go to the directory that contains a checkout of
`https://svn.apache.org/repos/asf/sis/data/non-free/sis-epsg`.