You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2019/12/26 14:45:20 UTC

[maven-integration-testing] branch MNG-4463 updated (2487dc2 -> 9e068ee)

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

slachiewicz pushed a change to branch MNG-4463
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git.


 discard 2487dc2  [MNG-4463] Dependency management import should support version ranges.
     add 62c8e7a  [MNG-6255] Maven script cannot parse jvm.config with CRLF
     add c0ad4eb  [MNG-6556] Packaging 'maven-plugin' binding plugin upgrades
     add 1dc554e  [MNG-4385] Avoid failse positive for unrelated errors
     add ef38c8f  added some output to investigate unexpected failures
     add 3ccccc4  [MNG-6720] MultiThreadedBuilder: wait for parallel running projects when using --fail-fast
     add 1d5db0a  [MNG-6725] Skip '.mavenrc' via MAVEN_SKIP_RC=1 and '-Dmaven.skip.rc=true' on child ITs (by default on Jenkins CI).
     add 65b534a  Ensure any forked Maven executions are not spied on by Jenkins
     add fee37c6  [MNG-6720] MultiThreadedBuilder: wait for parallel running projects when using --fail-fast
     add 12f31a4  Add new bootstrap groups
     add a2e1d33  better toc configuration: remove level 1
     add fd0183c  more links to bootstrap
     add 9380423  display verifier.forkMode
     add b6b593d  [INFRA-18812] Revert unnecessary commits after fixing root cause
     add 482756e  fixed the IT 4554 as LocalPort is -1 if Jetty connector is not open. Error message in logs: [WARNING] Could not transfer metadata org.apache.maven.its.mng4554/maven-metadata.xml from/to central (http://localhost:-1/repo-1): Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
     add 2e3c13a  fixed the IT 4554 as LocalPort is -1 if Jetty connector is not open. Error message in logs: [WARNING] Could not transfer metadata org.apache.maven.its.mng4554/maven-metadata.xml from/to central (http://localhost:-1/repo-1): Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
     add 389b1ec  LocalPort is -1 if Jetty connector is not open. Error message in logs: [WARNING] Could not transfer metadata org.apache.maven.its.mng4554/maven-metadata.xml from/to central (http://localhost:-1/repo-1): Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
     add 95fd13d  [MNG-6731] Jetty getLocalPort() returns -1 resulting in build failures
     add 6e480ac  details on expected failure (typically on ASF Jenkins)
     add 5f32015  clarify Core ITs vs Core IT Support vs Core ITs Suite
     add ee183c7  [MNG-6584] new detailed message
     add 9e98d89  [REGRESSION] Maven fails to use <repositories> section from dependency when resolving transitive dependencies in some cases
     add 5695f74  [MNG-6759] Fix module name
     add c46c871  updated GitHub repository description
     new 9e068ee  [MNG-4463] Dependency management import should support version ranges.

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (2487dc2)
            \
             N -- N -- N   refs/heads/MNG-4463 (9e068ee)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .asf.yaml                                          |   8 ++
 core-it-suite/pom.xml                              |  35 +----
 core-it-suite/src/site/apt/bootstrap.apt.vm        |   8 +-
 core-it-suite/src/site/apt/index.apt.vm            |  36 ++++-
 core-it-suite/src/site/site.xml                    |   2 -
 .../test/java/org/apache/maven/it/HttpServer.java  |  13 +-
 .../org/apache/maven/it/IntegrationTestSuite.java  |   6 +
 .../it/MavenIT0146InstallerSnapshotNaming.java     |  39 +++--
 .../MavenITmng0553SettingsAuthzEncryptionTest.java |  60 ++++----
 .../maven/it/MavenITmng0768OfflineModeTest.java    |  36 +++--
 .../it/MavenITmng2305MultipleProxiesTest.java      |  57 +++++---
 .../maven/it/MavenITmng2387InactiveProxyTest.java  |  42 +++---
 .../it/MavenITmng2576MakeLikeReactorTest.java      |   2 +-
 ...41PluginMetadataResolutionErrorMessageTest.java |   6 +-
 .../MavenITmng3415JunkRepositoryMetadataTest.java  |  34 +++--
 .../maven/it/MavenITmng3461MirrorMatchingTest.java |  35 +++--
 ...MavenITmng3599useHttpProxyForWebDAVMk2Test.java |  31 ++--
 .../MavenITmng3599useHttpProxyForWebDAVTest.java   |  32 +++--
 .../it/MavenITmng3652UserAgentHeaderTest.java      |  66 +++++----
 .../MavenITmng3953AuthenticatedDeploymentTest.java |  69 ++++-----
 .../it/MavenITmng4068AuthenticatedMirrorTest.java  |  57 ++++----
 ...enITmng4235HttpAuthDeploymentChecksumsTest.java |  95 +++++++------
 ...4326LocalSnapshotSuppressesRemoteCheckTest.java |  32 +++--
 ...venITmng4343MissingReleaseUpdatePolicyTest.java |  59 +++++---
 ...ITmng4348NoUnnecessaryRepositoryAccessTest.java |  35 ++---
 .../maven/it/MavenITmng4360WebDavSupportTest.java  |  35 ++---
 ...LifecycleMappingFromExtensionInReactorTest.java |   4 +
 ...avenITmng4413MirroringOfDependencyRepoTest.java |  48 ++++---
 .../it/MavenITmng4428FollowHttpRedirectTest.java   |  66 +++++----
 ...469AuthenticatedDeploymentToCustomRepoTest.java |  70 ++++-----
 ...Tmng4470AuthenticatedDeploymentToProxyTest.java |  90 ++++++------
 ...MavenITmng4489MirroringOfExtensionRepoTest.java |  48 ++++---
 ...Tmng4500NoUpdateOfTimestampedSnapshotsTest.java |  38 ++---
 ...avenITmng4554PluginPrefixMappingUpdateTest.java |  64 ++++++---
 ...nITmng4555MetaversionResolutionOfflineTest.java |  31 ++--
 .../MavenITmng4561MirroringOfPluginRepoTest.java   |  48 ++++---
 ...729MirrorProxyAuthUsedByProjectBuilderTest.java |  48 ++++---
 ...refixResolutionDoesntTouchDisabledRepoTest.java |  43 +++---
 ...rsionResolutionDoesntTouchDisabledRepoTest.java |  36 ++---
 ...nITmng4781DeploymentToNexusStagingRepoTest.java |  65 ++++-----
 .../maven/it/MavenITmng4991NonProxyHostsTest.java  |  36 +++--
 .../MavenITmng5064SuppressSnapshotUpdatesTest.java |  36 ++---
 .../maven/it/MavenITmng5175WagonHttpTest.java      |  39 ++---
 .../MavenITmng5230MakeReactorWithExcludesTest.java |   2 +-
 ...g5280SettingsProfilesRepositoriesOrderTest.java |  63 +++++----
 .../maven/it/MavenITmng6255FixConcatLines.java     | 104 ++++++++++++++
 .../maven/it/MavenITmng6720FailFastTest.java       |  77 ++++++++++
 ...ng6759TransitiveDependencyRepositoriesTest.java |  64 +++++++++
 .../src/test/java/org/mortbay/log/StdErrLog.java   | 157 ---------------------
 .../c/1.0/c-1.0.pom => bootstrap/group-10/pom.xml} |  92 ++++++------
 .../src/test/resources/bootstrap/group-8/pom.xml   |  10 ++
 .../c/1.0/c-1.0.pom => bootstrap/group-9/pom.xml}  |  92 ++++++------
 core-it-suite/src/test/resources/bootstrap/pom.xml |   2 +
 .../0.1/maven-it-plugin-b-0.1.pom                  |   2 +-
 .../extension-plugin/pom.xml                       |   6 +
 .../sessionscope/plugin/TestSessionScopeMojo.java  |   8 +-
 .../mng-5530-mojo-execution-scope/plugin/pom.xml   |   6 +
 .../mojoexecutionscope/TestExecutionScopeMojo.java |   8 +-
 .../extension-plugin/pom.xml                       |   6 +
 .../sessionscope/plugin/TestSessionScopeMojo.java  |   8 +-
 .../mng-5578-session-scope/plugin/pom.xml          |   6 +
 .../mng5530/sessionscope/TestSessionScopeMojo.java |   8 +-
 .../plugin/pom.xml                                 |   6 +
 .../plugin/BuildExtensionClassloaderMojo.java      |  11 +-
 .../plugin/pom.xml                                 |   6 +
 .../apache/maven/its/mng5753/plugin/TestMojo.java  |  12 +-
 .../plugin/pom.xml                                 |   6 +
 .../apache/maven/its/mng5783/plugin/TestMojo.java  |  14 +-
 .../WEB-INF/web.xml => mng-6255/.mvn/jvm.config}   |   0
 .../{mng-5889-find.mvn => mng-6255}/pom.xml        |   8 +-
 .../module-1/pom.xml                               |  13 +-
 .../module-1/src/test/java/Module1Test.java        |  12 ++
 .../module-2/pom.xml                               |  14 +-
 .../module-2/src/test/java/Module2Test.java        |  11 ++
 .../module-3/pom.xml                               |  17 ++-
 .../module-3/src/test/java/Module3Test.java        |  10 ++
 .../project => mng-6720-fail-fast}/pom.xml         |  14 +-
 .../dependency-in-custom-repo/pom.xml              |  19 +++
 .../module1/pom.xml                                |  18 +++
 .../module2/pom.xml                                |  25 ++++
 .../pom.xml                                        |  32 +++++
 .../maven-it-plugin-packaging/pom.xml              |   2 +-
 .../pom.xml                                        |  19 ++-
 .../apache/maven/its/mng6759}/plugin/TestMojo.java |  54 ++++---
 core-it-support/core-it-plugins/pom.xml            |   1 +
 core-it-support/pom.xml                            |   9 +-
 pom.xml                                            |   7 +-
 src/site/apt/index.apt                             |  21 +--
 src/site/site.xml                                  |   1 +
 89 files changed, 1682 insertions(+), 1141 deletions(-)
 create mode 100644 .asf.yaml
 create mode 100644 core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6255FixConcatLines.java
 create mode 100644 core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6720FailFastTest.java
 create mode 100644 core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6759TransitiveDependencyRepositoriesTest.java
 delete mode 100644 core-it-suite/src/test/java/org/mortbay/log/StdErrLog.java
 copy core-it-suite/src/test/resources/{mng-4883/repo/org/apache/maven/its/mng4883/c/1.0/c-1.0.pom => bootstrap/group-10/pom.xml} (68%)
 copy core-it-suite/src/test/resources/{mng-4883/repo/org/apache/maven/its/mng4883/c/1.0/c-1.0.pom => bootstrap/group-9/pom.xml} (68%)
 copy core-it-suite/src/test/resources/{mng-5898/servlets/servlet/src/main/webapp/WEB-INF/web.xml => mng-6255/.mvn/jvm.config} (100%)
 copy core-it-suite/src/test/resources/{mng-5889-find.mvn => mng-6255}/pom.xml (86%)
 copy core-it-suite/src/test/resources/{mng-6391-print-version-aggregator => mng-6720-fail-fast}/module-1/pom.xml (81%)
 create mode 100644 core-it-suite/src/test/resources/mng-6720-fail-fast/module-1/src/test/java/Module1Test.java
 copy core-it-suite/src/test/resources/{mng-6352-print-version-aggregator => mng-6720-fail-fast}/module-2/pom.xml (81%)
 create mode 100644 core-it-suite/src/test/resources/mng-6720-fail-fast/module-2/src/test/java/Module2Test.java
 copy core-it-suite/src/test/resources/{mng-6352-print-version => mng-6720-fail-fast}/module-3/pom.xml (80%)
 create mode 100644 core-it-suite/src/test/resources/mng-6720-fail-fast/module-3/src/test/java/Module3Test.java
 copy core-it-suite/src/test/resources/{mng-6127-plugin-execution-configuration-interference/project => mng-6720-fail-fast}/pom.xml (85%)
 create mode 100644 core-it-suite/src/test/resources/mng-6759-transitive-dependency-repositories/dependency-in-custom-repo/pom.xml
 create mode 100644 core-it-suite/src/test/resources/mng-6759-transitive-dependency-repositories/module1/pom.xml
 create mode 100644 core-it-suite/src/test/resources/mng-6759-transitive-dependency-repositories/module2/pom.xml
 create mode 100644 core-it-suite/src/test/resources/mng-6759-transitive-dependency-repositories/pom.xml
 copy core-it-support/core-it-plugins/{mng5805-plugin => mng6759-plugin-resolves-project-dependencies}/pom.xml (73%)
 copy {core-it-suite/src/test/resources/mng-5753-custom-mojo-execution-configurator/plugin/src/main/java/org/apache/maven/its/mng5753 => core-it-support/core-it-plugins/mng6759-plugin-resolves-project-dependencies/src/main/java/org/apache/maven/its/mng6759}/plugin/TestMojo.java (52%)


[maven-integration-testing] 01/01: [MNG-4463] Dependency management import should support version ranges.

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MNG-4463
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 9e068eeae3282d3644a1ab3170448552e4af5cdb
Author: Christian Schulte <sc...@apache.org>
AuthorDate: Sat Jan 30 20:21:33 2016 +0100

    [MNG-4463] Dependency management import should support version ranges.
---
 .../org/apache/maven/it/IntegrationTestSuite.java  |   1 +
 ...463DependencyManagementImportVersionRanges.java | 108 +++++++++++++++++++++
 .../mng-4463/exclusive-upper-bound/pom.xml         |  76 +++++++++++++++
 .../mng-4463/inclusive-upper-bound/pom.xml         |  76 +++++++++++++++
 .../test/resources/mng-4463/no-upper-bound/pom.xml |  54 +++++++++++
 5 files changed, 315 insertions(+)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
index 6d61985..298a349 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
@@ -117,6 +117,7 @@ public class IntegrationTestSuite
         suite.addTestSuite( MavenITmng6255FixConcatLines.class );
         suite.addTestSuite( MavenITmng6240PluginExtensionAetherProvider.class );
         suite.addTestSuite( MavenITmng6223FindBasedir.class );
+        suite.addTestSuite( MavenITmng4463DependencyManagementImportVersionRanges.class );
         suite.addTestSuite( MavenITmng6189SiteReportPluginsWarningTest.class );
         suite.addTestSuite( MavenITmng6127PluginExecutionConfigurationInterferenceTest.class );
         suite.addTestSuite( MavenITmng6057CheckReactorOrderTest.class );
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4463DependencyManagementImportVersionRanges.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4463DependencyManagementImportVersionRanges.java
new file mode 100644
index 0000000..a6f548c
--- /dev/null
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4463DependencyManagementImportVersionRanges.java
@@ -0,0 +1,108 @@
+/*
+ * Copyright 2016 The Apache Software Foundation.
+ *
+ * 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.
+ */
+package org.apache.maven.it;
+
+import java.io.File;
+import java.util.List;
+import java.util.regex.Pattern;
+import org.apache.maven.it.util.ResourceExtractor;
+import static junit.framework.Assert.assertTrue;
+
+/**
+ * Integration tests for <a href="https://issues.apache.org/jira/browse/MNG-4463">MNG-4463</a>.
+ *
+ * @author Christian Schulte
+ */
+public class MavenITmng4463DependencyManagementImportVersionRanges
+    extends AbstractMavenIntegrationTestCase
+{
+
+    public MavenITmng4463DependencyManagementImportVersionRanges()
+    {
+        super( "[3.4.0,)" );
+    }
+
+    public void testInclusiveUpperBoundResolvesToHighestVersion()
+        throws Exception
+    {
+        final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4463/inclusive-upper-bound" );
+        final Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
+        verifier.setAutoclean( false );
+        verifier.deleteDirectory( "target" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+
+        final List<String> artifacts = verifier.loadLines( "target/compile.txt", "UTF-8" );
+        assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven:maven-plugin-api:jar:3.0" ) );
+    }
+
+    public void testExclusiveUpperBoundResolvesToHighestVersion()
+        throws Exception
+    {
+        final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4463/exclusive-upper-bound" );
+        final Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
+        verifier.setAutoclean( false );
+        verifier.deleteDirectory( "target" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+
+        List<String> artifacts = verifier.loadLines( "target/compile.txt", "UTF-8" );
+        assertTrue( artifacts.toString(), artifacts.contains( "org.apache.maven:maven-plugin-api:jar:3.0" ) );
+    }
+
+    public void testFailureWithoutUpperBound()
+        throws Exception
+    {
+        final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4463/no-upper-bound" );
+        final Verifier verifier = newVerifier( testDir.getAbsolutePath(), "remote" );
+
+        try
+        {
+            verifier.setAutoclean( false );
+            verifier.deleteDirectory( "target" );
+            verifier.executeGoal( "validate" );
+            fail( "Expected 'VerificationException' not thrown." );
+        }
+        catch ( final VerificationException e )
+        {
+            final List<String> lines = verifier.loadFile( new File( testDir, "log.txt" ), false );
+            assertTrue( "Expected error message not found.",
+                        indexOf( lines, ".*dependency version range.*does not specify an upper bound.*" ) >= 0 );
+        }
+        finally
+        {
+            verifier.resetStreams();
+        }
+    }
+
+    private static int indexOf( final List<String> logLines, final String regex )
+    {
+        final Pattern pattern = Pattern.compile( regex );
+
+        for ( int i = 0, l0 = logLines.size(); i < l0; i++ )
+        {
+            if ( pattern.matcher( logLines.get( i ) ).matches() )
+            {
+                return i;
+            }
+        }
+
+        return -1;
+    }
+
+}
diff --git a/core-it-suite/src/test/resources/mng-4463/exclusive-upper-bound/pom.xml b/core-it-suite/src/test/resources/mng-4463/exclusive-upper-bound/pom.xml
new file mode 100644
index 0000000..54404ac
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-4463/exclusive-upper-bound/pom.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng4463</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: MNG-4463</name>
+  <description>
+    Tests that importing dependency management using version ranges
+    with exclusive upper bound resolves to the highest version.
+  </description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven</artifactId>
+        <version>(,3.0.1)</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+        <version>2.1-SNAPSHOT</version>
+        <configuration>
+          <compileArtifacts>target/compile.txt</compileArtifacts>
+        </configuration>
+        <executions>
+          <execution>
+            <id>test</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/core-it-suite/src/test/resources/mng-4463/inclusive-upper-bound/pom.xml b/core-it-suite/src/test/resources/mng-4463/inclusive-upper-bound/pom.xml
new file mode 100644
index 0000000..0e91b01
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-4463/inclusive-upper-bound/pom.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng4463</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: MNG-4463</name>
+  <description>
+    Tests that importing dependency management using version ranges
+    with inclusive upper bound resolves to the highest version.
+  </description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven</artifactId>
+        <version>(,3.0]</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+        <version>2.1-SNAPSHOT</version>
+        <configuration>
+          <compileArtifacts>target/compile.txt</compileArtifacts>
+        </configuration>
+        <executions>
+          <execution>
+            <id>test</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/core-it-suite/src/test/resources/mng-4463/no-upper-bound/pom.xml b/core-it-suite/src/test/resources/mng-4463/no-upper-bound/pom.xml
new file mode 100644
index 0000000..53ec4e3
--- /dev/null
+++ b/core-it-suite/src/test/resources/mng-4463/no-upper-bound/pom.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng4463</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: MNG-4463</name>
+  <description>
+    Tests that importing dependency management using version ranges
+    without upper bound fails.
+  </description>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven</groupId>
+        <artifactId>maven</artifactId>
+        <version>(3.0,)</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+    </dependency>
+  </dependencies>
+</project>