mirror of https://github.com/apache/archiva.git
PR: MRM-42
Submitted by: Maria Odea Ching Class for discovering repository metadata and fixed failing tests on DefaultArtifactDiscovererTest and LegacyArtifactDiscovererTest git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@357620 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
053d76faff
commit
94473e23b3
|
@ -21,5 +21,13 @@
|
|||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-artifact</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-repository-metadata</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-artifact-manager</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<component-set>
|
||||
<components>
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.MetadataDiscoverer</role>
|
||||
<role-hint>default</role-hint>
|
||||
<implementation>org.apache.maven.repository.discovery.DefaultMetadataDiscoverer</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
|
||||
<role-hint>legacy</role-hint>
|
||||
|
@ -11,7 +17,6 @@
|
|||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
|
||||
<role-hint>default</role-hint>
|
||||
|
|
|
@ -276,7 +276,7 @@ public class DefaultArtifactDiscovererTest
|
|||
assertNotNull( "Check artifacts not null", artifacts );
|
||||
|
||||
assertTrue( "Check normal included",
|
||||
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source" ) ) );
|
||||
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "sources" ) ) );
|
||||
}
|
||||
|
||||
public void testDistributionInclusion()
|
||||
|
|
|
@ -261,7 +261,7 @@ public class LegacyArtifactDiscovererTest
|
|||
assertNotNull( "Check artifacts not null", artifacts );
|
||||
|
||||
assertTrue( "Check normal included",
|
||||
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source" ) ) );
|
||||
artifacts.contains( createArtifact( "org.apache.maven", "testing", "1.0", "java-source", "sources" ) ) );
|
||||
}
|
||||
|
||||
public void testDistributionInclusion()
|
||||
|
|
Loading…
Reference in New Issue