From 4913aa89f143fdcfd4dee9434a34a18bd6808e45 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Thu, 20 Jun 2019 10:44:20 -0500
Subject: [PATCH 01/37] add snapshots repo, and allow that one repo in the
 enforcer config

---
 pom.xml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 39e04ff..f3156c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -197,7 +197,10 @@
               <configuration>
                 <fail>${enforceBestPractices}</fail>
                 <rules>
-                  <requireNoRepositories />
+                  <requireNoRepositories>
+                    <allowedRepositories>sonatype-snapshots</allowedRepositories>
+                    <allowSnapshotRepositories>true</allowSnapshotRepositories>
+                  </requireNoRepositories>
                   <requirePluginVersions>
                     <banLatest />
                     <banRelease />
@@ -499,4 +502,13 @@
     </snapshotRepository>
   </distributionManagement>
 
+  <repositories>
+    <repository>
+      <id>sonatype-snapshots</id>
+      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+      <releases><enabled>false</enabled></releases>
+      <snapshots><enabled>true</enabled></snapshots>
+    </repository>
+  </repositories>
+
 </project>

From e3b46fd77d5d6622f2f386856a570601cb73012e Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Thu, 20 Jun 2019 10:44:47 -0500
Subject: [PATCH 02/37] [maven-release-plugin] prepare release commonjava-14

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index f3156c5..e60c1b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>14-SNAPSHOT</version>
+  <version>14</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-14</tag>
   </scm>
 
   <properties>

From 9e087de9e2455ffdef397f4b9744dc6513178d53 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Thu, 20 Jun 2019 10:44:53 -0500
Subject: [PATCH 03/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index e60c1b6..f7c2d62 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>14</version>
+  <version>15-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-14</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From 76f675da619fd5bd32f87dc0f0c590816af80fbd Mon Sep 17 00:00:00 2001
From: Rui Han <ruhan@redhat.com>
Date: Tue, 13 Aug 2019 13:24:10 +0800
Subject: [PATCH 04/37] Add Jenkinsfile

---
 Jenkinsfile | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Jenkinsfile

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..d72cdae
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,25 @@
+pipeline {
+    agent { label 'maven' }
+    stages {
+        stage('Prepare') {
+            steps {
+                sh 'printenv'
+            }
+        }
+        stage('Build') {
+            when {
+                expression { env.CHANGE_ID != null } // Pull request
+            }
+            steps {
+                sh 'mvn -B -V clean verify -Prun-its -Pci'
+            }
+        }
+        stage('Deploy') {
+            when { branch 'master' }
+            steps {
+                echo "Deploy"
+                sh 'mvn help:effective-settings -B -V clean deploy -e -s ~/sonatype/settings.xml'
+            }
+        }
+    }
+}

From 10b30a04639ec5a61add86f11b87b84fceb4a85e Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Fri, 6 Sep 2019 09:52:28 -0500
Subject: [PATCH 05/37] turn off javadoc linting

---
 pom.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pom.xml b/pom.xml
index f7c2d62..da255a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -310,6 +310,10 @@
               </goals>
               <configuration>
                 <detectOfflineLinks>false</detectOfflineLinks>
+
+                <additionalparam>-Xdoclint:none</additionalparam>
+                <additionalOptions>-Xdoclint:none</additionalOptions>
+                <additionalJOption>-Xdoclint:none</additionalJOption>
               </configuration>
             </execution>
           </executions>

From 1b545efff9d5aca03cd1484f2690b650ce8cd56a Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Fri, 6 Sep 2019 09:52:51 -0500
Subject: [PATCH 06/37] [maven-release-plugin] prepare release commonjava-15

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index da255a9..6dc92f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>15-SNAPSHOT</version>
+  <version>15</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-15</tag>
   </scm>
 
   <properties>

From 21bc94746265dc7505bf0a35e5c8b0876620563d Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Fri, 6 Sep 2019 09:52:58 -0500
Subject: [PATCH 07/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6dc92f9..58a107a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>15</version>
+  <version>16-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-15</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From c180d2058bb695b151c35c1ae551089d6e0f709d Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Wed, 2 Oct 2019 17:15:26 -0500
Subject: [PATCH 08/37] remove settings specification to use default settings
 instead (#27)

---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d72cdae..d7dcc28 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -18,7 +18,7 @@ pipeline {
             when { branch 'master' }
             steps {
                 echo "Deploy"
-                sh 'mvn help:effective-settings -B -V clean deploy -e -s ~/sonatype/settings.xml'
+                sh 'mvn help:effective-settings -B -V clean deploy -e'
             }
         }
     }

From d75d520962816a8ca3890a69d81dc52a913ed2f4 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Wed, 9 Oct 2019 17:05:26 -0500
Subject: [PATCH 09/37] update deploy plugin to allow separation of alternative
 deploy repos for releases/snapshots (#28)

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 58a107a..bb1ebd7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
     <version.plugin.surefire>2.18.1</version.plugin.surefire>
     <version.plugin.failsafe>2.18.1</version.plugin.failsafe>
     <version.plugin.clean>2.5</version.plugin.clean>
-    <version.plugin.deploy>2.7</version.plugin.deploy>
+    <version.plugin.deploy>2.8.2</version.plugin.deploy>
     <version.plugin.install>2.4</version.plugin.install>
     <version.plugin.resources>2.6</version.plugin.resources>
     <version.plugin.site>3.3</version.plugin.site>

From 805dd85540b972876a1066211cfbf44cfdc4b016 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Mon, 14 Oct 2019 16:49:38 -0500
Subject: [PATCH 10/37] [maven-release-plugin] prepare release commonjava-16

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index bb1ebd7..1b5b2b2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>16-SNAPSHOT</version>
+  <version>16</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-16</tag>
   </scm>
 
   <properties>

From 8f521f16aa7fe3154d8a8b82176d00bc7418e1fb Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Mon, 14 Oct 2019 16:49:44 -0500
Subject: [PATCH 11/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1b5b2b2..e1b3eae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>16</version>
+  <version>17-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-16</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From 6bb7e3a6a2ddd4e697e611c42b6ff765f5992df3 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Thu, 20 Feb 2020 16:36:14 -0600
Subject: [PATCH 12/37] make the default source/target version 1.8 (#29)

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index e1b3eae..b7e49d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
   </scm>
 
   <properties>
-    <javaVersion>1.7</javaVersion>
+    <javaVersion>1.8</javaVersion>
     <javaTestVersion>${javaVersion}</javaTestVersion>
     <projectOwner>John Casey</projectOwner>
     <projectEmail>jdcasey@commonjava.org</projectEmail>

From dffda7ba95cc229b0e822333d34b64bf40077007 Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Mon, 1 Mar 2021 22:38:42 +0800
Subject: [PATCH 13/37] Update plugin versions to latest

---
 codestyles/CommonJava.xml |  2 +-
 pmd-ruleset.xml           |  3 +--
 pom.xml                   | 50 +++++++++++++++++++--------------------
 travis-settings.xml       |  2 +-
 4 files changed, 28 insertions(+), 29 deletions(-)

diff --git a/codestyles/CommonJava.xml b/codestyles/CommonJava.xml
index c425192..f54a4e5 100644
--- a/codestyles/CommonJava.xml
+++ b/codestyles/CommonJava.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2012 John Casey (jdcasey@commonjava.org)
+    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
diff --git a/pmd-ruleset.xml b/pmd-ruleset.xml
index 9a01f8c..aa1a09b 100644
--- a/pmd-ruleset.xml
+++ b/pmd-ruleset.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!--
 
-    Copyright (C) 2012 John Casey (jdcasey@commonjava.org)
+    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
     limitations under the License.
 
 -->
-
 <ruleset name="Custom ruleset" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
diff --git a/pom.xml b/pom.xml
index b7e49d8..5a9c269 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2012 John Casey (jdcasey@commonjava.org)
+    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@
   <url>https://github.com/Commonjava/commonjava</url>
 
   <description>CommonJava top-level parent POM.</description>
-  <inceptionYear>2012</inceptionYear>
+  <inceptionYear>2011-2021</inceptionYear>
 
   <licenses>
     <license>
@@ -40,9 +40,9 @@
 
   <developers>
     <developer>
-      <id>jdcasey</id>
-      <email>jdcasey@commonjava.org</email>
-      <name>John Casey</name>
+      <id>Red Hat, Inc.</id>
+      <name>Red Hat, Inc.</name>
+      <organization>Red Hat, Inc.</organization>
     </developer>
   </developers>
 
@@ -56,28 +56,28 @@
   <properties>
     <javaVersion>1.8</javaVersion>
     <javaTestVersion>${javaVersion}</javaTestVersion>
-    <projectOwner>John Casey</projectOwner>
-    <projectEmail>jdcasey@commonjava.org</projectEmail>
+    <projectOwner>Red Hat, Inc.</projectOwner>
+    <projectEmail>http://github.com/Commonjava/commonjava</projectEmail>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <version.plugin.compiler>3.1</version.plugin.compiler>
-    <version.plugin.plugin>3.2</version.plugin.plugin>
+    <version.plugin.compiler>3.8.1</version.plugin.compiler>
+    <version.plugin.plugin>3.6.0</version.plugin.plugin>
     <version.plugin.plexus-component-metadata>1.6</version.plugin.plexus-component-metadata>
-    <version.plugin.release>2.5</version.plugin.release>
-    <version.plugin.enforcer>1.4</version.plugin.enforcer>
-    <version.plugin.assembly>2.3</version.plugin.assembly>
-    <version.plugin.jar>2.4</version.plugin.jar>
-    <version.plugin.source>2.1.2</version.plugin.source>
-    <version.plugin.javadoc>2.8.1</version.plugin.javadoc>
-    <version.plugin.gpg>1.1</version.plugin.gpg>
-    <version.plugin.surefire>2.18.1</version.plugin.surefire>
-    <version.plugin.failsafe>2.18.1</version.plugin.failsafe>
-    <version.plugin.clean>2.5</version.plugin.clean>
+    <version.plugin.release>2.5.3</version.plugin.release>
+    <version.plugin.enforcer>1.4.1</version.plugin.enforcer>
+    <version.plugin.assembly>3.3.0</version.plugin.assembly>
+    <version.plugin.jar>3.2.0</version.plugin.jar>
+    <version.plugin.source>3.2.1</version.plugin.source>
+    <version.plugin.javadoc>3.2.0</version.plugin.javadoc>
+    <version.plugin.gpg>1.6</version.plugin.gpg>
+    <version.plugin.surefire>2.22.2</version.plugin.surefire>
+    <version.plugin.failsafe>2.22.2</version.plugin.failsafe>
+    <version.plugin.clean>3.1.0</version.plugin.clean>
     <version.plugin.deploy>2.8.2</version.plugin.deploy>
-    <version.plugin.install>2.4</version.plugin.install>
-    <version.plugin.resources>2.6</version.plugin.resources>
-    <version.plugin.site>3.3</version.plugin.site>
-    <version.plugin.pmd>3.6</version.plugin.pmd>
-    <version.plugin.jacoco>0.7.5.201505241946</version.plugin.jacoco>
+    <version.plugin.install>2.5.2</version.plugin.install>
+    <version.plugin.resources>3.2.0</version.plugin.resources>
+    <version.plugin.site>3.9.1</version.plugin.site>
+    <version.plugin.pmd>3.9.0</version.plugin.pmd>
+    <version.plugin.jacoco>0.8.6</version.plugin.jacoco>
 
     <plugin.jacoco.skip>true</plugin.jacoco.skip>
 
@@ -85,7 +85,7 @@
     <enforceManagedDeps>true</enforceManagedDeps>
 
     <unEnforcedPlugins>org.eclipse.m2e:lifecycle-mapping</unEnforcedPlugins>
-    <enforcedMavenVersion>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</enforcedMavenVersion>
+    <enforcedMavenVersion>(3.0.0,)</enforcedMavenVersion>
     <enforcedJavaVersion>${javaVersion}</enforcedJavaVersion>
 
     <enforceBestPractices>true</enforceBestPractices>
diff --git a/travis-settings.xml b/travis-settings.xml
index 30ae950..82a9a52 100644
--- a/travis-settings.xml
+++ b/travis-settings.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2012 John Casey (jdcasey@commonjava.org)
+    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.

From acda06167e47f85cb660ae0d4de8ff36c34f0a4b Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Mon, 26 Apr 2021 15:32:56 -0500
Subject: [PATCH 14/37] Adding basic CI workflows

---
 .github/workflows/merge-build.yml | 44 +++++++++++++++++++++++++++++++
 .github/workflows/pr-build.yml    | 28 ++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 .github/workflows/merge-build.yml
 create mode 100644 .github/workflows/pr-build.yml

diff --git a/.github/workflows/merge-build.yml b/.github/workflows/merge-build.yml
new file mode 100644
index 0000000..6e0f8c4
--- /dev/null
+++ b/.github/workflows/merge-build.yml
@@ -0,0 +1,44 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Merge / Push Build
+
+on: [push]
+
+jobs:
+  publish-snapshot:
+
+    runs-on: ubuntu-latest
+
+    permissions: 
+      contents: read
+      packages: write
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: Set up JDK
+      uses: actions/setup-java@v2
+      with:
+        java-version: '11'
+        distribution: 'adopt'
+        # server-id: sonatype
+        # server-username: SONATYPE_BOT_USERNAME
+        # server-password: SONATYPE_BOT_TOKEN
+
+    - name: maven-settings-xml-action
+      uses: whelk-io/maven-settings-xml-action@v14
+      if: ${{ github.event.repository.fork == false }}
+      with:
+        repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
+        servers: '[{ "id": "sonatype", "username": "${{ secrets.SONATYPE_BOT_USERNAME}}", "password": "${{ secrets.SONATYPE_BOT_TOKEN}}" }]'
+
+    - name: "Maven Build & Deploy Snapshot to Sonatype OSSRH"
+      if: ${{ github.event.repository.fork == false }}
+
+      run: mvn -B -e deploy -DaltDeploymentRepository=sonatype::default::https://oss.sonatype.org/content/repositories/snapshots/
+
+    - name: "Maven Build"
+      if: ${{ github.event.repository.fork == true }}
+
+      run: mvn -B -e verify
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
new file mode 100644
index 0000000..db5aa5d
--- /dev/null
+++ b/.github/workflows/pr-build.yml
@@ -0,0 +1,28 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: PR Build
+
+on: [pull_request]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: Set up JDK
+      uses: actions/setup-java@v2
+      with:
+        java-version: '11'
+        distribution: 'adopt'
+
+    - name: maven-settings-xml-action
+      uses: whelk-io/maven-settings-xml-action@v14
+      with:
+        repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
+
+    - name: Build with Maven
+      run: mvn -B -e verify

From 9dec23142b3128bd3e705e788c0341bcca899d07 Mon Sep 17 00:00:00 2001
From: John Casey <jdcasey@commonjava.org>
Date: Mon, 26 Apr 2021 15:34:07 -0500
Subject: [PATCH 15/37] remove travisCI config

---
 .travis.yml | 4 ----
 1 file changed, 4 deletions(-)
 delete mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 735c203..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: java
-install: '/bin/true'
-script: '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn deploy  -s ./travis-settings.xml -V -Prun-its -q -B -e|| mvn install -s ./travis-settings.xml -V -Prun-its -q -B -e'
-

From 207cb951077ff844ab91d2a10fcf1a920cae03e7 Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Sun, 26 Dec 2021 14:19:44 +0800
Subject: [PATCH 16/37] Chore: upgrade some plugin versions

---
 pom.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 5a9c269..df1f863 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,15 +60,15 @@
     <projectEmail>http://github.com/Commonjava/commonjava</projectEmail>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <version.plugin.compiler>3.8.1</version.plugin.compiler>
-    <version.plugin.plugin>3.6.0</version.plugin.plugin>
+    <version.plugin.plugin>3.6.2</version.plugin.plugin>
     <version.plugin.plexus-component-metadata>1.6</version.plugin.plexus-component-metadata>
     <version.plugin.release>2.5.3</version.plugin.release>
-    <version.plugin.enforcer>1.4.1</version.plugin.enforcer>
+    <version.plugin.enforcer>3.0.0</version.plugin.enforcer>
     <version.plugin.assembly>3.3.0</version.plugin.assembly>
     <version.plugin.jar>3.2.0</version.plugin.jar>
     <version.plugin.source>3.2.1</version.plugin.source>
-    <version.plugin.javadoc>3.2.0</version.plugin.javadoc>
-    <version.plugin.gpg>1.6</version.plugin.gpg>
+    <version.plugin.javadoc>3.3.1</version.plugin.javadoc>
+    <version.plugin.gpg>3.0.1</version.plugin.gpg>
     <version.plugin.surefire>2.22.2</version.plugin.surefire>
     <version.plugin.failsafe>2.22.2</version.plugin.failsafe>
     <version.plugin.clean>3.1.0</version.plugin.clean>
@@ -77,7 +77,7 @@
     <version.plugin.resources>3.2.0</version.plugin.resources>
     <version.plugin.site>3.9.1</version.plugin.site>
     <version.plugin.pmd>3.9.0</version.plugin.pmd>
-    <version.plugin.jacoco>0.8.6</version.plugin.jacoco>
+    <version.plugin.jacoco>0.8.7</version.plugin.jacoco>
 
     <plugin.jacoco.skip>true</plugin.jacoco.skip>
 

From 7065eab1d18a2fffc64bf57a917ee5077ab67b76 Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Mon, 21 Mar 2022 16:35:03 +0800
Subject: [PATCH 17/37] Fix inceptionYear to current year

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index df1f863..88ecc40 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
   <url>https://github.com/Commonjava/commonjava</url>
 
   <description>CommonJava top-level parent POM.</description>
-  <inceptionYear>2011-2021</inceptionYear>
+  <inceptionYear>2011-2022</inceptionYear>
 
   <licenses>
     <license>

From c02b7e21ba1310f30e9dfb11012f838b531b5d1b Mon Sep 17 00:00:00 2001
From: Gang Li <gli@redhat.com>
Date: Mon, 21 Mar 2022 08:40:37 +0000
Subject: [PATCH 18/37] Update license header

---
 .github/workflows/merge-build.yml | 16 ++++++++++++++++
 .github/workflows/pr-build.yml    | 16 ++++++++++++++++
 codestyles/CommonJava.xml         |  2 +-
 pmd-ruleset.xml                   |  2 +-
 pom.xml                           |  2 +-
 travis-settings.xml               |  2 +-
 6 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/merge-build.yml b/.github/workflows/merge-build.yml
index 6e0f8c4..da24e36 100644
--- a/.github/workflows/merge-build.yml
+++ b/.github/workflows/merge-build.yml
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 # This workflow will build a Java project with Maven
 # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
 
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
index db5aa5d..db6c41d 100644
--- a/.github/workflows/pr-build.yml
+++ b/.github/workflows/pr-build.yml
@@ -1,3 +1,19 @@
+#
+# Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 # This workflow will build a Java project with Maven
 # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
 
diff --git a/codestyles/CommonJava.xml b/codestyles/CommonJava.xml
index f54a4e5..99a0fa6 100644
--- a/codestyles/CommonJava.xml
+++ b/codestyles/CommonJava.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+    Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
diff --git a/pmd-ruleset.xml b/pmd-ruleset.xml
index aa1a09b..3ada49a 100644
--- a/pmd-ruleset.xml
+++ b/pmd-ruleset.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!--
 
-    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+    Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
diff --git a/pom.xml b/pom.xml
index 88ecc40..ed81a2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+    Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
diff --git a/travis-settings.xml b/travis-settings.xml
index 82a9a52..ac46c68 100644
--- a/travis-settings.xml
+++ b/travis-settings.xml
@@ -1,6 +1,6 @@
 <!--
 
-    Copyright (C) 2011-2021 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
+    Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.

From 79511435e548ce7aad4a8a5307ad3634d78aa61f Mon Sep 17 00:00:00 2001
From: Gang Li <gli@redhat.com>
Date: Mon, 21 Mar 2022 08:40:56 +0000
Subject: [PATCH 19/37] [maven-release-plugin] prepare release commonjava-17

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index ed81a2c..0394f1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>17-SNAPSHOT</version>
+  <version>17</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-17</tag>
   </scm>
 
   <properties>

From 832201e9f0d5049cefb173621684583976943324 Mon Sep 17 00:00:00 2001
From: Gang Li <gli@redhat.com>
Date: Mon, 21 Mar 2022 08:40:57 +0000
Subject: [PATCH 20/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0394f1a..401e5ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>17</version>
+  <version>18-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-17</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From b76ce4736da66a43b2ed3d463c2cc1c31e2ef266 Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Wed, 23 Nov 2022 12:44:08 +0800
Subject: [PATCH 21/37] Update jenkins builder label

---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d7dcc28..61c4af3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,5 @@
 pipeline {
-    agent { label 'maven' }
+    agent { label 'maven-36-jdk11' }
     stages {
         stage('Prepare') {
             steps {

From c8a3d4988826a11892c9dc4e0a9b52c185dbd5d2 Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Fri, 3 Feb 2023 11:06:05 +0800
Subject: [PATCH 22/37] Add doclint:none for javadoc-plugin 3.x

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 401e5ea..50c2813 100644
--- a/pom.xml
+++ b/pom.xml
@@ -310,10 +310,10 @@
               </goals>
               <configuration>
                 <detectOfflineLinks>false</detectOfflineLinks>
-
                 <additionalparam>-Xdoclint:none</additionalparam>
                 <additionalOptions>-Xdoclint:none</additionalOptions>
                 <additionalJOption>-Xdoclint:none</additionalJOption>
+                <doclint>none</doclint>
               </configuration>
             </execution>
           </executions>

From ea7e95238ab6dfe534cac3bb2f17cc0cf9f7a3b7 Mon Sep 17 00:00:00 2001
From: Gang Li <gli@redhat.com>
Date: Fri, 3 Feb 2023 03:14:17 +0000
Subject: [PATCH 23/37] [maven-release-plugin] prepare release commonjava-18

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 50c2813..796b1a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>18-SNAPSHOT</version>
+  <version>18</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-18</tag>
   </scm>
 
   <properties>

From 084b2b792180ccd0d67248748f82768fdfc94a5a Mon Sep 17 00:00:00 2001
From: Gang Li <gli@redhat.com>
Date: Fri, 3 Feb 2023 03:14:18 +0000
Subject: [PATCH 24/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 796b1a2..e76b833 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>18</version>
+  <version>19-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-18</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From 57d999602229cc1744ac1f660d3e11de25883778 Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Tue, 21 Nov 2023 14:00:32 +0800
Subject: [PATCH 25/37] switched github actions to new workflow

---
 .github/workflows/maven-build.yml | 51 ++++++++++++++++++++++++++
 .github/workflows/merge-build.yml | 60 -------------------------------
 .github/workflows/pr-build.yml    | 44 -----------------------
 3 files changed, 51 insertions(+), 104 deletions(-)
 create mode 100644 .github/workflows/maven-build.yml
 delete mode 100644 .github/workflows/merge-build.yml
 delete mode 100644 .github/workflows/pr-build.yml

diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
new file mode 100644
index 0000000..6187f36
--- /dev/null
+++ b/.github/workflows/maven-build.yml
@@ -0,0 +1,51 @@
+name: build on maven
+
+on:
+  watch:
+    types: [started]
+  pull_request:
+    types: [opened, reopened, edited, synchronize, ready_for_review]
+  push:
+    branches:
+      - main
+      - master
+
+  workflow_dispatch:
+
+jobs:
+  build:
+    name: Build with maven
+    runs-on: ubuntu-latest
+    env:
+      MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m"
+    steps:
+    - uses: actions/checkout@v4
+
+    - name: Set up JDK 11 for x64
+      uses: actions/setup-java@v3
+      with:
+        java-version: '11'
+        distribution: 'temurin'
+        architecture: x64
+
+    - uses: s4u/maven-settings-action@v2.8.0
+      with:
+        sonatypeSnapshots: true
+
+    - name: Build the Maven verify phase
+      run: mvn -B -V clean verify -Prun-its -Pci
+
+
+    - uses: s4u/maven-settings-action@v2.8.0
+      if: ${{ github.event_name == 'push' }}
+      with:
+        servers: |
+          [{
+              "id": "sonatype-nexus-snapshots",
+              "username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
+              "password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
+          }]
+
+    - name: Deploy the artifact
+      if: ${{ github.event_name == 'push' }}
+      run: mvn help:effective-settings -B -V clean deploy -e
diff --git a/.github/workflows/merge-build.yml b/.github/workflows/merge-build.yml
deleted file mode 100644
index da24e36..0000000
--- a/.github/workflows/merge-build.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-# Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This workflow will build a Java project with Maven
-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-name: Merge / Push Build
-
-on: [push]
-
-jobs:
-  publish-snapshot:
-
-    runs-on: ubuntu-latest
-
-    permissions: 
-      contents: read
-      packages: write
-
-    steps:
-    - uses: actions/checkout@v2
-
-    - name: Set up JDK
-      uses: actions/setup-java@v2
-      with:
-        java-version: '11'
-        distribution: 'adopt'
-        # server-id: sonatype
-        # server-username: SONATYPE_BOT_USERNAME
-        # server-password: SONATYPE_BOT_TOKEN
-
-    - name: maven-settings-xml-action
-      uses: whelk-io/maven-settings-xml-action@v14
-      if: ${{ github.event.repository.fork == false }}
-      with:
-        repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
-        servers: '[{ "id": "sonatype", "username": "${{ secrets.SONATYPE_BOT_USERNAME}}", "password": "${{ secrets.SONATYPE_BOT_TOKEN}}" }]'
-
-    - name: "Maven Build & Deploy Snapshot to Sonatype OSSRH"
-      if: ${{ github.event.repository.fork == false }}
-
-      run: mvn -B -e deploy -DaltDeploymentRepository=sonatype::default::https://oss.sonatype.org/content/repositories/snapshots/
-
-    - name: "Maven Build"
-      if: ${{ github.event.repository.fork == true }}
-
-      run: mvn -B -e verify
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
deleted file mode 100644
index db6c41d..0000000
--- a/.github/workflows/pr-build.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This workflow will build a Java project with Maven
-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-name: PR Build
-
-on: [pull_request]
-
-jobs:
-  build:
-
-    runs-on: ubuntu-latest
-
-    steps:
-    - uses: actions/checkout@v2
-
-    - name: Set up JDK
-      uses: actions/setup-java@v2
-      with:
-        java-version: '11'
-        distribution: 'adopt'
-
-    - name: maven-settings-xml-action
-      uses: whelk-io/maven-settings-xml-action@v14
-      with:
-        repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
-
-    - name: Build with Maven
-      run: mvn -B -e verify

From 44ab0eb4d9e5ddea986570d537e4d3b4b926a16b Mon Sep 17 00:00:00 2001
From: Gang Li <ligangty@users.noreply.github.com>
Date: Fri, 5 Jan 2024 19:36:56 +0800
Subject: [PATCH 26/37] Update maven plugins versions to latest

---
 pom.xml | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/pom.xml b/pom.xml
index e76b833..bd0463f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,25 +59,25 @@
     <projectOwner>Red Hat, Inc.</projectOwner>
     <projectEmail>http://github.com/Commonjava/commonjava</projectEmail>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <version.plugin.compiler>3.8.1</version.plugin.compiler>
-    <version.plugin.plugin>3.6.2</version.plugin.plugin>
+    <version.plugin.compiler>3.11.0</version.plugin.compiler>
+    <version.plugin.plugin>3.10.2</version.plugin.plugin>
     <version.plugin.plexus-component-metadata>1.6</version.plugin.plexus-component-metadata>
-    <version.plugin.release>2.5.3</version.plugin.release>
-    <version.plugin.enforcer>3.0.0</version.plugin.enforcer>
-    <version.plugin.assembly>3.3.0</version.plugin.assembly>
-    <version.plugin.jar>3.2.0</version.plugin.jar>
-    <version.plugin.source>3.2.1</version.plugin.source>
-    <version.plugin.javadoc>3.3.1</version.plugin.javadoc>
-    <version.plugin.gpg>3.0.1</version.plugin.gpg>
-    <version.plugin.surefire>2.22.2</version.plugin.surefire>
-    <version.plugin.failsafe>2.22.2</version.plugin.failsafe>
-    <version.plugin.clean>3.1.0</version.plugin.clean>
-    <version.plugin.deploy>2.8.2</version.plugin.deploy>
-    <version.plugin.install>2.5.2</version.plugin.install>
-    <version.plugin.resources>3.2.0</version.plugin.resources>
+    <version.plugin.release>3.0.1</version.plugin.release>
+    <version.plugin.enforcer>3.4.1</version.plugin.enforcer>
+    <version.plugin.assembly>3.6.0</version.plugin.assembly>
+    <version.plugin.jar>3.3.0</version.plugin.jar>
+    <version.plugin.source>3.3.0</version.plugin.source>
+    <version.plugin.javadoc>3.6.3</version.plugin.javadoc>
+    <version.plugin.gpg>3.1.0</version.plugin.gpg>
+    <version.plugin.surefire>3.2.2</version.plugin.surefire>
+    <version.plugin.failsafe>3.2.2</version.plugin.failsafe>
+    <version.plugin.clean>3.3.2</version.plugin.clean>
+    <version.plugin.deploy>3.1.1</version.plugin.deploy>
+    <version.plugin.install>3.1.1</version.plugin.install>
+    <version.plugin.resources>3.3.1</version.plugin.resources>
     <version.plugin.site>3.9.1</version.plugin.site>
-    <version.plugin.pmd>3.9.0</version.plugin.pmd>
-    <version.plugin.jacoco>0.8.7</version.plugin.jacoco>
+    <version.plugin.pmd>3.21.2</version.plugin.pmd>
+    <version.plugin.jacoco>0.8.9</version.plugin.jacoco>
 
     <plugin.jacoco.skip>true</plugin.jacoco.skip>
 

From ad3f5f985f479f1a035227dcab41a5b0a1ae02f8 Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Wed, 27 Mar 2024 17:31:40 +0800
Subject: [PATCH 27/37] Update license header

---
 .github/workflows/maven-build.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
index 6187f36..fafef03 100644
--- a/.github/workflows/maven-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -1,3 +1,22 @@
+#
+# Copyright (C) 2011-2024 Red Hat, Inc. (https://github.com/Commonjava/indy)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
 name: build on maven
 
 on:

From 045b18ad679573cd8b65165bfe9cb7b40ce98a6a Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Wed, 27 Mar 2024 17:47:13 +0800
Subject: [PATCH 28/37] Update license header

---
 .github/workflows/maven-build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
index fafef03..3821bf2 100644
--- a/.github/workflows/maven-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2024 Red Hat, Inc. (https://github.com/Commonjava/indy)
+# Copyright (C) 2011-2024 Red Hat, Inc. (https://github.com/Commonjava/commonjava)
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.

From e9051fa3873da46976309b2f8eeada8b5c4c2eb3 Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Wed, 27 Mar 2024 17:58:27 +0800
Subject: [PATCH 29/37] Update license header

---
 .github/workflows/maven-build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
index 3821bf2..129d211 100644
--- a/.github/workflows/maven-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2024 Red Hat, Inc. (https://github.com/Commonjava/commonjava)
+# Copyright (C) 2011-2022 Red Hat, Inc. (http://github.com/Commonjava/commonjava)
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.

From 984e5b100d5042146d81ccea8ef66315c47a95fe Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Wed, 27 Mar 2024 19:23:56 +0800
Subject: [PATCH 30/37] update developer connection for CI

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index bd0463f..198a67b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,7 +48,7 @@
 
   <scm>
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
-    <developerConnection>scm:git:git@github.com:Commonjava/commonjava.git</developerConnection>
+    <developerConnection>scm:git:https://github.com/Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
     <tag>HEAD</tag>
   </scm>

From e61d35c2a0befd10cd7188f47ed4d64fea1a2394 Mon Sep 17 00:00:00 2001
From: commonjava-bot <commonjava-bot@commonjava.org>
Date: Wed, 27 Mar 2024 11:27:22 +0000
Subject: [PATCH 31/37] [maven-release-plugin] prepare release commonjava-19

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 198a67b..544e3b0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>19-SNAPSHOT</version>
+  <version>19</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:https://github.com/Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-19</tag>
   </scm>
 
   <properties>

From e20ff95436febbf40af26f01f7459f9636b5155a Mon Sep 17 00:00:00 2001
From: commonjava-bot <commonjava-bot@commonjava.org>
Date: Wed, 27 Mar 2024 11:27:24 +0000
Subject: [PATCH 32/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 544e3b0..7ae299c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>19</version>
+  <version>20-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:https://github.com/Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-19</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From 0e4fe94310d6945c21e970ee65287e9acb2da239 Mon Sep 17 00:00:00 2001
From: shokakucarrier <hououenkyouma@gmail.com>
Date: Tue, 17 Jun 2025 06:03:45 +0800
Subject: [PATCH 33/37] Update pom.xml, use central-publishing-maven-plugin to
 deploy

---
 .github/workflows/maven-build.yml |  2 +-
 pom.xml                           | 25 +++++++++++--------------
 2 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
index 129d211..73ef359 100644
--- a/.github/workflows/maven-build.yml
+++ b/.github/workflows/maven-build.yml
@@ -60,7 +60,7 @@ jobs:
       with:
         servers: |
           [{
-              "id": "sonatype-nexus-snapshots",
+              "id": "central",
               "username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
               "password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
           }]
diff --git a/pom.xml b/pom.xml
index 7ae299c..379f26d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,6 +73,7 @@
     <version.plugin.failsafe>3.2.2</version.plugin.failsafe>
     <version.plugin.clean>3.3.2</version.plugin.clean>
     <version.plugin.deploy>3.1.1</version.plugin.deploy>
+    <version.plugin.sonatype>0.7.0</version.plugin.sonatype>
     <version.plugin.install>3.1.1</version.plugin.install>
     <version.plugin.resources>3.3.1</version.plugin.resources>
     <version.plugin.site>3.9.1</version.plugin.site>
@@ -408,6 +409,15 @@
         <groupId>org.jacoco</groupId>
         <artifactId>jacoco-maven-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.sonatype.central</groupId>
+        <artifactId>central-publishing-maven-plugin</artifactId>
+        <version>${version.plugin.sonatype}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <publishingServerId>central</publishingServerId>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
@@ -493,23 +503,10 @@
     </profile>
   </profiles>
 
-  <distributionManagement>
-    <repository>
-      <id>sonatype-nexus-staging</id>
-      <name>Release Repository</name>
-      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
-    </repository>
-    <snapshotRepository>
-      <id>sonatype-nexus-snapshots</id>
-      <name>Sonatype Nexus</name>
-      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
-    </snapshotRepository>
-  </distributionManagement>
-
   <repositories>
     <repository>
       <id>sonatype-snapshots</id>
-      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+      <url>https://central.sonatype.com/repository/maven-snapshots/</url>
       <releases><enabled>false</enabled></releases>
       <snapshots><enabled>true</enabled></snapshots>
     </repository>

From a089c8a8cf0ca75b483970b61de666d51aadf5a5 Mon Sep 17 00:00:00 2001
From: commonjava-bot <commonjava-bot@commonjava.org>
Date: Wed, 18 Jun 2025 09:23:10 +0000
Subject: [PATCH 34/37] [maven-release-plugin] prepare release commonjava-20

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 379f26d..aaa7cbf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>20-SNAPSHOT</version>
+  <version>20</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:https://github.com/Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>HEAD</tag>
+    <tag>commonjava-20</tag>
   </scm>
 
   <properties>

From 2cf8d5e8e05c0c6a6094f69a7eb7e5e516303669 Mon Sep 17 00:00:00 2001
From: commonjava-bot <commonjava-bot@commonjava.org>
Date: Wed, 18 Jun 2025 09:23:11 +0000
Subject: [PATCH 35/37] [maven-release-plugin] prepare for next development
 iteration

---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index aaa7cbf..b0a92bd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
 
   <groupId>org.commonjava</groupId>
   <artifactId>commonjava</artifactId>
-  <version>20</version>
+  <version>21-SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <name>CommonJava Top-Level Parent POM</name>
@@ -50,7 +50,7 @@
     <connection>scm:git:https://github.com/Commonjava/commonjava.git</connection>
     <developerConnection>scm:git:https://github.com/Commonjava/commonjava.git</developerConnection>
     <url>http://github.com/Commonjava/commonjava</url>
-    <tag>commonjava-20</tag>
+    <tag>HEAD</tag>
   </scm>
 
   <properties>

From fde76ed502eb0eddc106fd537f5e2bfdd79be211 Mon Sep 17 00:00:00 2001
From: ruhan <ruhan@redhat.com>
Date: Fri, 20 Jun 2025 10:56:10 +0700
Subject: [PATCH 36/37] Update java version to 11

---
 pom.xml | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/pom.xml b/pom.xml
index b0a92bd..1921099 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
   </scm>
 
   <properties>
-    <javaVersion>1.8</javaVersion>
+    <javaVersion>11</javaVersion>
     <javaTestVersion>${javaVersion}</javaTestVersion>
     <projectOwner>Red Hat, Inc.</projectOwner>
     <projectEmail>http://github.com/Commonjava/commonjava</projectEmail>
@@ -62,7 +62,7 @@
     <version.plugin.compiler>3.11.0</version.plugin.compiler>
     <version.plugin.plugin>3.10.2</version.plugin.plugin>
     <version.plugin.plexus-component-metadata>1.6</version.plugin.plexus-component-metadata>
-    <version.plugin.release>3.0.1</version.plugin.release>
+    <version.plugin.release>3.1.1</version.plugin.release>
     <version.plugin.enforcer>3.4.1</version.plugin.enforcer>
     <version.plugin.assembly>3.6.0</version.plugin.assembly>
     <version.plugin.jar>3.3.0</version.plugin.jar>
@@ -180,9 +180,17 @@
           <version>${version.plugin.release}</version>
           <configuration>
             <autoVersionSubmodules>true</autoVersionSubmodules>
-            <mavenExecutorId>forked-path</mavenExecutorId>
             <useReleaseProfile>false</useReleaseProfile>
-            <arguments>-Prelease</arguments>
+            <releaseProfiles>release</releaseProfiles>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.sonatype.central</groupId>
+          <artifactId>central-publishing-maven-plugin</artifactId>
+          <version>${version.plugin.sonatype}</version>
+          <extensions>true</extensions>
+          <configuration>
+            <publishingServerId>central</publishingServerId>
           </configuration>
         </plugin>
         <plugin>
@@ -412,11 +420,6 @@
       <plugin>
         <groupId>org.sonatype.central</groupId>
         <artifactId>central-publishing-maven-plugin</artifactId>
-        <version>${version.plugin.sonatype}</version>
-        <extensions>true</extensions>
-        <configuration>
-          <publishingServerId>central</publishingServerId>
-        </configuration>
       </plugin>
     </plugins>
   </build>

From d7d42337e572977fce888d9b1803f0fb6f08bb9c Mon Sep 17 00:00:00 2001
From: ruhan <ruhan@redhat.com>
Date: Fri, 20 Jun 2025 14:12:18 +0700
Subject: [PATCH 37/37] automatically publish after upload and validation

---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 1921099..289395e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -191,6 +191,7 @@
           <extensions>true</extensions>
           <configuration>
             <publishingServerId>central</publishingServerId>
+            <autoPublish>true</autoPublish>
           </configuration>
         </plugin>
         <plugin>
