1 package org.apache.maven.repository.reporting;
4 * Copyright 2001-2005 The Apache Software Foundation.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
23 * This interface is used by the single artifact processor.
25 * The initial implementation of this will just need to be a mock implementation in src/test/java, used to track the
26 * failures and successes for checking assertions. Later, implementations will be made to present reports on the
27 * web interface, send them via mail, and so on.
29 public interface ArtifactReporter
31 String ROLE = ArtifactReporter.class.getName();
33 void addFailure( Artifact artifact, String reason );
35 void addSuccess( Artifact artifact );
37 void addWarning( Artifact artifact, String message );
39 void addFailure( RepositoryMetadata metadata, String reason );
41 void addSuccess( RepositoryMetadata metadata );
43 void addWarning( RepositoryMetadata metadata, String message );