Submitted by: John Tolentino Added Skeleton Unit Test git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@350094 13f79535-47bb-0310-9956-ffa450edef68tags/archiva-0.9-alpha-1
<groupId>org.apache.maven</groupId> | <groupId>org.apache.maven</groupId> | ||||
<artifactId>maven-artifact-manager</artifactId> | <artifactId>maven-artifact-manager</artifactId> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>org.apache.maven.repository</groupId> | |||||
<artifactId>maven-repository-discovery</artifactId> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
</project> | </project> |
package org.apache.maven.repository.reporting; | |||||
import org.apache.maven.repository.discovery.AbstractArtifactDiscoverer; | |||||
import org.apache.maven.artifact.Artifact; | |||||
import java.util.List; | |||||
/* | |||||
* Copyright 2001-2005 The Apache Software Foundation. | |||||
* | |||||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||||
* you may not use this file except in compliance with the License. | |||||
* You may obtain a copy of the License at | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, software | |||||
* distributed under the License is distributed on an "AS IS" BASIS, | |||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
* See the License for the specific language governing permissions and | |||||
* limitations under the License. | |||||
*/ | |||||
/** | |||||
* @author <a href="mailto:jtolentino@mergere.com">John Tolentino</a> | |||||
*/ | |||||
public class DefaultArtifactReporter | |||||
implements ArtifactReporter | |||||
{ | |||||
public void addFailure( Artifact artifact, String reason ) | |||||
{ | |||||
} | |||||
public void addSuccess( Artifact artifact ) | |||||
{ | |||||
} | |||||
public void addWarning( Artifact artifact, String message ) | |||||
{ | |||||
} | |||||
} |
package org.apache.maven.repository.reporting; | |||||
import org.apache.maven.artifact.Artifact; | |||||
/* | |||||
* Copyright 2001-2005 The Apache Software Foundation. | |||||
* | |||||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||||
* you may not use this file except in compliance with the License. | |||||
* You may obtain a copy of the License at | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* Unless required by applicable law or agreed to in writing, software | |||||
* distributed under the License is distributed on an "AS IS" BASIS, | |||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
* See the License for the specific language governing permissions and | |||||
* limitations under the License. | |||||
*/ | |||||
/** | |||||
* @author <a href="mailto:jtolentino@mergere.com">John Tolentino</a> | |||||
*/ | |||||
public class DefaultRepositoryQueryLayer | |||||
implements RepositoryQueryLayer | |||||
{ | |||||
public boolean containsArtifact( Artifact artifact ) | |||||
{ | |||||
return true; | |||||
} | |||||
} |
{ | { | ||||
String ROLE = RepositoryQueryLayer.class.getName(); | String ROLE = RepositoryQueryLayer.class.getName(); | ||||
void containsArtifact( Artifact artifact ); | |||||
boolean containsArtifact( Artifact artifact ); | |||||
} | } |
<artifactId>wagon-http-lightweight</artifactId> | <artifactId>wagon-http-lightweight</artifactId> | ||||
<version>1.0-alpha-5</version> | <version>1.0-alpha-5</version> | ||||
</dependency> | </dependency> | ||||
<dependency> | |||||
<groupId>org.apache.maven.repository</groupId> | |||||
<artifactId>maven-repository-discovery</artifactId> | |||||
<version>${pom.version}</version> | |||||
</dependency> | |||||
</dependencies> | </dependencies> | ||||
</dependencyManagement> | </dependencyManagement> | ||||
<distributionManagement> | <distributionManagement> |