Used org.eclipse.aether artifacts for tests
diff --git a/src/test/ant/Resolve.xml b/src/test/ant/Resolve.xml
index 177b1f1..d753c29 100644
--- a/src/test/ant/Resolve.xml
+++ b/src/test/ant/Resolve.xml
@@ -63,7 +63,7 @@
<target name="testResolveAttachments">
<repo:resolve>
<dependencies>
- <dependency groupid="org.sonatype.aether" artifactid="aether-impl" version="1.11" />
+ <dependency groupid="org.eclipse.aether" artifactid="aether-impl" version="0.9.0.M3" />
</dependencies>
<files dir="${build.dir}/resolve-attachments/" layout="javadoc/{groupId}-{artifactId}-{classifier}.{extension}" attachments="javadoc"/>
<files dir="${build.dir}/resolve-attachments/" layout="sources/{groupId}-{artifactId}-{classifier}.{extension}" attachments="sources"/>
diff --git a/src/test/ant/pom.xml b/src/test/ant/pom.xml
index 5dbd0ab..574e835 100644
--- a/src/test/ant/pom.xml
+++ b/src/test/ant/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- ~ Copyright (c) 2010, 2011 Sonatype, Inc.
+ ~ Copyright (c) 2010, 2014 Sonatype, Inc.
~ All rights reserved. This program and the accompanying materials
~ are made available under the terms of the Eclipse Public License v1.0
~ which accompanies this distribution, and is available at
@@ -26,17 +26,17 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <aetherVersion>1.11</aetherVersion>
+ <aetherVersion>0.9.0.M3</aetherVersion>
</properties>
<dependencies>
<dependency>
- <groupId>org.sonatype.aether</groupId>
+ <groupId>org.eclipse.aether</groupId>
<artifactId>aether-api</artifactId>
<version>${aetherVersion}</version>
</dependency>
<dependency>
- <groupId>org.sonatype.aether</groupId>
+ <groupId>org.eclipse.aether</groupId>
<artifactId>aether-system</artifactId>
<version>${aetherVersion}</version>
<type>pom</type>
diff --git a/src/test/java/org/eclipse/aether/ant/ResolveTest.java b/src/test/java/org/eclipse/aether/ant/ResolveTest.java
index 2946f4c..a9bb1c4 100644
--- a/src/test/java/org/eclipse/aether/ant/ResolveTest.java
+++ b/src/test/java/org/eclipse/aether/ant/ResolveTest.java
@@ -37,7 +37,7 @@
{
executeTarget( "testResolveGlobalPom" );
- String prop = getProject().getProperty( "test.resolve.path.org.sonatype.aether:aether-api:jar" );
+ String prop = getProject().getProperty( "test.resolve.path.org.eclipse.aether:aether-api:jar" );
assertThat( "aether-api was not resolved as a property", prop, notNullValue() );
assertThat( "aether-api was not resolved to default local repository", prop,
allOf( containsString( "aether-api" ), endsWith( ".jar" ) ) );
@@ -47,7 +47,7 @@
{
executeTarget( "testResolveOverrideGlobalPom" );
- String prop = getProject().getProperty( "test.resolve.path.org.sonatype.aether:aether-api:jar" );
+ String prop = getProject().getProperty( "test.resolve.path.org.eclipse.aether:aether-api:jar" );
assertThat( "aether-api was not resolved as a property", prop, notNullValue() );
assertThat( "aether-api was not resolved to default local repository", prop,
allOf( containsString( "aether-api" ), endsWith( ".jar" ) ) );
@@ -57,10 +57,10 @@
{
executeTarget( "testResolveGlobalPomIntoOtherLocalRepo" );
- String prop = getProject().getProperty( "test.resolve.path.org.sonatype.aether:aether-api:jar" );
+ String prop = getProject().getProperty( "test.resolve.path.org.eclipse.aether:aether-api:jar" );
assertThat( "aether-api was not resolved as a property", prop, notNullValue() );
assertThat( "aether-api was not resolved to default local repository", prop.replace( '\\', '/' ),
- endsWith( "local-repo-custom/org/sonatype/aether/aether-api/1.11/aether-api-1.11.jar" ) );
+ endsWith( "local-repo-custom/org/eclipse/aether/aether-api/0.9.0.M3/aether-api-0.9.0.M3.jar" ) );
}
public void testResolveCustomFileLayout()
@@ -70,7 +70,7 @@
executeTarget( "testResolveCustomFileLayout" );
assertThat( "aether-api was not saved with custom file layout",
- new File( dir, "org.sonatype.aether/aether-api/org/sonatype/aether/jar" ).exists() );
+ new File( dir, "org.eclipse.aether/aether-api/org/eclipse/aether/jar" ).exists() );
}
public void testResolveAttachments()
@@ -82,13 +82,13 @@
File jdocDir = new File(dir, "javadoc");
assertThat( "aether-api-javadoc was not saved with custom file layout",
- new File( jdocDir, "org.sonatype.aether-aether-api-javadoc.jar" ).exists() );
+ new File( jdocDir, "org.eclipse.aether-aether-api-javadoc.jar" ).exists() );
assertThat( "found non-javadoc files", Arrays.asList( jdocDir.list() ), everyItem( endsWith( "javadoc.jar" ) ) );
File sourcesDir = new File( dir, "sources" );
assertThat( "aether-api-sources was not saved with custom file layout",
- new File( sourcesDir, "org.sonatype.aether-aether-api-sources.jar" ).exists() );
+ new File( sourcesDir, "org.eclipse.aether-aether-api-sources.jar" ).exists() );
assertThat( "found non-sources files", Arrays.asList( sourcesDir.list() ),
everyItem( endsWith( "sources.jar" ) ) );
}