This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-actions.git


The following commit(s) were added to refs/heads/main by this push:
     new 4d9e7b8  Rename central ID
4d9e7b8 is described below

commit 4d9e7b80b1ea78fde1cc69b4701be1753bf966e8
Author: Alastair McFarlane <[email protected]>
AuthorDate: Wed Mar 11 14:31:14 2026 +0000

    Rename central ID
---
 .github/workflows/distribute-maven.yml | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/distribute-maven.yml 
b/.github/workflows/distribute-maven.yml
index ae3baa1..faae8c8 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -75,7 +75,7 @@ jobs:
               </pluginGroups>
               <servers>
                 <server>
-                  <id>central</id>
+                  <id>sonatype-cp</id>
                   <username>${CENTRAL_USERNAME}</username>
                   <password>${CENTRAL_PASSWORD}</password>
                   <configuration>
@@ -83,18 +83,31 @@ jobs:
                   </configuration>
                 </server>
               </servers>
+              <profiles>
+                <profile>
+                  <id>njord</id>
+                  <properties>
+                    <!-- Njord configuration -->
+                    <njord.basedir>${user.home}/.njord</njord.basedir>
+                  </properties>
+                </profile>
+              </profiles>
+
+              <activeProfiles>
+                <activeProfile>njord</activeProfile>
+              </activeProfiles>
+
             </settings>
             EOF
       - name: Create extensions.xml
         run: |
-            mkdir -p ~/.m2
             cat > ~/.m2/extensions.xml << EOF
             <?xml version="1.0" encoding="UTF-8"?>
             <extensions>
               <extension>
                 <groupId>eu.maveniverse.maven.plugins</groupId>
                 <artifactId>njord-maven-plugin</artifactId>
-                <version>0.9.4</version>
+                <version>${currentVersion}</version>
               </extension>
             </extensions>
             EOF
@@ -202,7 +215,7 @@ jobs:
           echo "Validating store: $NJORD_STORE"
           mvn njord:validate -Dnjord.store=$NJORD_STORE 
-Dnjord.publisher=sonatype-cp -Dnjord.details=true -q | sed -n '/Central 
Requirements/,/ArtifactStore.*failed validation/{/ArtifactStore.*failed 
validation/!s/^\[ERROR\] *//p}' | tee .err
           echo "Publishing store: $NJORD_STORE"
-          mvn njord:publish -Dnjord.store=$NJORD_STORE 
-Dnjord.publisher=sonatype-cp -Dnjord.publishingType=automatic 
-Dnjord.serviceRedirect=central
+          mvn njord:publish -Dnjord.store=$NJORD_STORE 
-Dnjord.publisher=sonatype-cp -Dnjord.publishingType=automatic
           mvn njord:drop -Dnjord.store=$NJORD_STORE
 
       - name: Report status back to ATR


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to