mirror of https://github.com/apache/maven.git
[MNG-5151] updated constants to match the modification and added a unit-test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1172229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a67cc71fbe
commit
c7c79e1f1a
|
@ -51,7 +51,7 @@ public interface RepositorySystem
|
|||
|
||||
final String DEFAULT_REMOTE_REPO_ID = "central";
|
||||
|
||||
final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.org/maven2";
|
||||
final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.apache.org/maven2";
|
||||
|
||||
Artifact createArtifact( String groupId, String artifactId, String version, String packaging );
|
||||
|
||||
|
|
|
@ -1248,6 +1248,13 @@ public class PomConstructionTest
|
|||
assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/exclusions[1]/groupId" ) );
|
||||
assertEquals( "excluded-dep", pom.getValue( "dependencies[1]/exclusions[1]/artifactId" ) );
|
||||
|
||||
assertEquals( 2, ( (List<?>) pom.getValue( "repositories" ) ).size() );
|
||||
assertEquals( "project-remote-repo", pom.getValue( "repositories[1]/id" ) );
|
||||
assertEquals( "http://project.url/remote", pom.getValue( "repositories[1]/url" ) );
|
||||
assertEquals( "repo", pom.getValue( "repositories[1]/name" ) );
|
||||
assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_ID, pom.getValue( "repositories[2]/id" ) );
|
||||
assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_URL, pom.getValue( "repositories[2]/url" ) );
|
||||
|
||||
assertEquals( "test", pom.getValue( "build/defaultGoal" ) );
|
||||
assertEquals( "coreit", pom.getValue( "build/finalName" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue