From 585a3c2e83e998c8f99dad0dce3e4add77b0d6b1 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 21 Mar 2023 00:27:41 +0100 Subject: [PATCH] [MENFORCER-426] DependencyConvergence transitive dependencies with version range IT for ensure that DependencyConvergence with transitive dependencies with version range works correctly Root cause was fixed in Maven 3.9.2 --- .../it/mrm/repository/menforcer426-a-1.0.pom | 39 ++++++++++++ .../it/mrm/repository/menforcer426-b-1.0.pom | 34 +++++++++++ .../invoker.properties | 18 ++++++ .../dependency-convergence-ranges/pom.xml | 60 +++++++++++++++++++ 4 files changed, 151 insertions(+) create mode 100644 maven-enforcer-plugin/src/it/mrm/repository/menforcer426-a-1.0.pom create mode 100644 maven-enforcer-plugin/src/it/mrm/repository/menforcer426-b-1.0.pom create mode 100644 maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/invoker.properties create mode 100644 maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/pom.xml diff --git a/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-a-1.0.pom b/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-a-1.0.pom new file mode 100644 index 00000000..c203ffae --- /dev/null +++ b/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-a-1.0.pom @@ -0,0 +1,39 @@ + + + + 4.0.0 + org.apache.maven.plugins.enforcer.its + menforcer426-a + 1.0 + + + + org.apache.maven.plugins.enforcer.its + menforcer426-b + 1.0 + + + org.apache.maven.plugins.enforcer.its + menforcer128_api + [1.0.0,2.0.0) + + + \ No newline at end of file diff --git a/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-b-1.0.pom b/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-b-1.0.pom new file mode 100644 index 00000000..9582e37b --- /dev/null +++ b/maven-enforcer-plugin/src/it/mrm/repository/menforcer426-b-1.0.pom @@ -0,0 +1,34 @@ + + + + 4.0.0 + org.apache.maven.plugins.enforcer.its + menforcer426-b + 1.0 + + + + org.apache.maven.plugins.enforcer.its + menforcer128_api + [1.0.0,2.0.0) + + + \ No newline at end of file diff --git a/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/invoker.properties b/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/invoker.properties new file mode 100644 index 00000000..9c16d577 --- /dev/null +++ b/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/invoker.properties @@ -0,0 +1,18 @@ +# 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. + +invoker.maven.version = 3.9.2+ diff --git a/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/pom.xml b/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/pom.xml new file mode 100644 index 00000000..983fff96 --- /dev/null +++ b/maven-enforcer-plugin/src/it/projects/dependency-convergence-ranges/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + test + menforcer426 + 1.0 + + https://issues.apache.org/jira/browse/MENFORCER-426 + Check transitive dependencies with range version + + + + org.apache.maven.plugins.enforcer.its + menforcer426-a + 1.0 + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + @project.version@ + + + enforce + + + + + + + enforce + + + + + + + \ No newline at end of file