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

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new f6375f7cae Bump maven-core-version from 3.8.6 to 3.9.12 (#1601)
f6375f7cae is described below

commit f6375f7cae0b8952b7656b76df07d1b24320ce90
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 26 08:52:30 2026 +0100

    Bump maven-core-version from 3.8.6 to 3.9.12 (#1601)
    
    * Bump maven-core-version from 3.8.6 to 3.9.12
    
    Bumps `maven-core-version` from 3.8.6 to 3.9.12.
    
    Updates `org.apache.maven:maven-plugin-api` from 3.8.6 to 3.9.12
    - [Release notes](https://github.com/apache/maven/releases)
    - 
[Commits](https://github.com/apache/maven/compare/maven-3.8.6...maven-3.9.12)
    
    Updates `org.apache.maven:maven-core` from 3.8.6 to 3.9.12
    
    ---
    updated-dependencies:
    - dependency-name: org.apache.maven:maven-plugin-api
      dependency-version: 3.9.12
      dependency-type: direct:production
      update-type: version-update:semver-minor
    - dependency-name: org.apache.maven:maven-core
      dependency-version: 3.9.12
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    
    * Replace commons-lang3 Validate by local implementation
    
    ---------
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: JB Onofré <[email protected]>
---
 .../tool/sampler/AbstractPerformanceSampler.java   |  1 -
 .../org/apache/activemq/tool/sampler/Validate.java | 52 ++++++++++++++++++++++
 pom.xml                                            |  2 +-
 3 files changed, 53 insertions(+), 2 deletions(-)

diff --git 
a/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/AbstractPerformanceSampler.java
 
b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/AbstractPerformanceSampler.java
index e3810c7f40..cf1555782f 100644
--- 
a/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/AbstractPerformanceSampler.java
+++ 
b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/AbstractPerformanceSampler.java
@@ -22,7 +22,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
 import org.apache.activemq.tool.ClientRunBasis;
 import org.apache.activemq.tool.properties.AbstractObjectProperties;
 import org.apache.activemq.tool.reports.PerformanceReportWriter;
-import org.apache.commons.lang3.Validate;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
diff --git 
a/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/Validate.java
 
b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/Validate.java
new file mode 100644
index 0000000000..385c80ee67
--- /dev/null
+++ 
b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/Validate.java
@@ -0,0 +1,52 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.activemq.tool.sampler;
+
+/**
+ * Utility class for validation.
+ */
+public final class Validate {
+
+    private Validate() {
+        // Utility class
+    }
+
+    /**
+     * Validates that the given expression is true.
+     *
+     * @param expression the expression to validate
+     * @param message the error message to use if validation fails
+     * @throws IllegalArgumentException if the expression is false
+     */
+    public static void isTrue(boolean expression, String message) {
+        if (!expression) {
+            throw new IllegalArgumentException(message);
+        }
+    }
+
+    /**
+     * Validates that the given object is not null.
+     *
+     * @param object the object to validate
+     * @throws IllegalArgumentException if the object is null
+     */
+    public static void notNull(Object object) {
+        if (object == null) {
+            throw new IllegalArgumentException("The validated object is null");
+        }
+    }
+}
diff --git a/pom.xml b/pom.xml
index 08ddf92e24..fc1bbb1a9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,7 +129,7 @@
     <depends-maven-plugin-version>1.5.0</depends-maven-plugin-version>
     
<maven-project-info-reports-plugin-version>3.9.0</maven-project-info-reports-plugin-version>
     <maven-graph-plugin-version>1.45</maven-graph-plugin-version>
-    <maven-core-version>3.8.6</maven-core-version>
+    <maven-core-version>3.9.12</maven-core-version>
     <maven-surefire-plugin-version>3.5.3</maven-surefire-plugin-version>
     <!-- OSGi bundles properties -->
     <activemq.osgi.import.pkg>*</activemq.osgi.import.pkg>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to