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
<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>
<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>
</requirement>
</requirements>
</component>
-
<component>
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
<role-hint>default</role-hint>
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()
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()