maven: test fixed; use local repo for another DependenciesImportingTest test

(cherry picked from commit 8a5dbea)
This commit is contained in:
Vladislav.Soroka
2015-03-11 18:37:24 +03:00
parent 8f0d0f0ca5
commit 8be7c8c867
6 changed files with 58 additions and 0 deletions
@@ -0,0 +1 @@
2eac13c548db5190e3449ba57293b7bf5aa2ba00
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>asm</groupId>
<artifactId>asm-attrs</artifactId>
<name>asm-attrs</name>
<version>2.2.1</version>
<url>http://asm.objectweb.org/</url>
<inceptionYear>2000</inceptionYear>
<developers>
<developer>
<id>ebruneton</id>
<name>Eric Bruneton</name>
<email>Eric.Bruneton@rd.francetelecom.com</email>
<roles>
<role>Creator</role>
<role>Java Developer</role>
</roles>
</developer>
<developer>
<id>eu</id>
<name>Eugene Kuleshov</name>
<email>eu@javatx.org</email>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<organization>
<name>ObjectWeb</name>
<url>http://www.objectweb.org/</url>
</organization>
<build />
<dependencies>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
@@ -0,0 +1 @@
b9428b49290bc170ad9fd670fa3cfd066e4e5230
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<metadata>
<groupId>asm</groupId>
<artifactId>asm-attrs</artifactId>
<versioning>
<versions>
<version>2.2.1</version>
</versions>
</versioning>
</metadata>
@@ -2248,6 +2248,10 @@ public class DependenciesImportingTest extends MavenImportingTestCase {
//}
//
public void testVersionRangeInDependencyManagementDoesntBreakIndirectDependency() throws Exception {
MavenCustomRepositoryHelper helper = new MavenCustomRepositoryHelper(myDir, "local1");
String repoPath = helper.getTestDataPath("local1");
setRepositoryPath(repoPath);
createProjectPom("<groupId>test</groupId>" +
"<artifactId>project</artifactId>" +
"<version>1</version>" +