mirror of https://github.com/apache/maven.git
Deprecate all classes in maven-compat (#1227)
This commit is contained in:
parent
0b3246381d
commit
05a76bc427
|
@ -28,8 +28,8 @@ under the License.
|
|||
|
||||
<artifactId>maven-compat</artifactId>
|
||||
|
||||
<name>Maven Compat</name>
|
||||
<description>Maven2 classes maintained as compatibility layer.</description>
|
||||
<name>Maven Compat (deprecated)</name>
|
||||
<description>Deprecated Maven2 classes maintained as compatibility layer.</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
@ -24,6 +24,7 @@ package org.apache.maven.artifact;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public enum ArtifactScopeEnum {
|
||||
compile(1),
|
||||
test(2),
|
||||
|
|
|
@ -25,6 +25,7 @@ import java.util.Map;
|
|||
* Type safe enumeration for the artifact status field.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public final class ArtifactStatus implements Comparable<ArtifactStatus> {
|
||||
/**
|
||||
* No trust - no information about status.
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.codehaus.plexus.component.repository.exception.ComponentLookupExcepti
|
|||
* component in the current container.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnknownRepositoryLayoutException extends InvalidRepositoryException {
|
||||
|
||||
private final String layoutId;
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
/**
|
||||
* ArtifactDeployer
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactDeployer {
|
||||
String ROLE = ArtifactDeployer.class.getName();
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.apache.maven.artifact.deployer;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactDeploymentException extends Exception {
|
||||
public ArtifactDeploymentException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -51,6 +51,7 @@ import org.eclipse.aether.util.artifact.SubArtifact;
|
|||
* DefaultArtifactDeployer
|
||||
*/
|
||||
@Named
|
||||
@Deprecated
|
||||
public class DefaultArtifactDeployer extends AbstractLogEnabled implements ArtifactDeployer {
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.apache.maven.artifact.installer;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactInstallationException extends Exception {
|
||||
public ArtifactInstallationException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactInstaller {
|
||||
String ROLE = ArtifactInstaller.class.getName();
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ import org.eclipse.aether.util.artifact.SubArtifact;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultArtifactInstaller extends AbstractLogEnabled implements ArtifactInstaller {
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -48,6 +48,7 @@ import org.codehaus.plexus.logging.Logger;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultWagonManager extends org.apache.maven.repository.legacy.DefaultWagonManager
|
||||
implements WagonManager {
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactRepositoryFactory {
|
||||
String ROLE = ArtifactRepositoryFactory.class.getName();
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.eclipse.aether.RepositorySystemSession;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultArtifactRepositoryFactory implements ArtifactRepositoryFactory {
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -49,6 +49,7 @@ import org.eclipse.aether.repository.RemoteRepository;
|
|||
* of the public API. In particular, this class can be changed or deleted without prior notice.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class LegacyLocalRepositoryManager implements LocalRepositoryManager {
|
||||
|
||||
private final ArtifactRepository delegate;
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
*/
|
||||
@Named("flat")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class FlatRepositoryLayout implements ArtifactRepositoryLayout {
|
||||
|
||||
private static final char ARTIFACT_SEPARATOR = '-';
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.maven.artifact.repository.metadata.io.MetadataStaxWriter;
|
|||
* Shared methods of the repository metadata handling.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
|
||||
private static final String LS = System.lineSeparator();
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.maven.artifact.versioning.VersionRange;
|
|||
* Metadata for the artifact directory of the repository.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactRepositoryMetadata extends AbstractRepositoryMetadata {
|
||||
private Artifact artifact;
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ import org.codehaus.plexus.logging.AbstractLogEnabled;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultRepositoryMetadataManager extends AbstractLogEnabled implements RepositoryMetadataManager {
|
||||
@Inject
|
||||
private WagonManager wagonManager;
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
* Metadata for the group directory of the repository.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class GroupRepositoryMetadata extends AbstractRepositoryMetadata {
|
||||
private final String groupId;
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ import org.eclipse.aether.metadata.Metadata;
|
|||
* of the public API. In particular, this class can be changed or deleted without prior notice.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public final class MetadataBridge extends AbstractMetadata implements MergeableMetadata {
|
||||
|
||||
private ArtifactMetadata metadata;
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* Assists in handling repository metadata.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
class MetadataUtils {
|
||||
|
||||
public static Metadata cloneMetadata(Metadata src) {
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
|
|||
*
|
||||
* TODO not happy about the store method - they use "this"
|
||||
*/
|
||||
@Deprecated
|
||||
public interface RepositoryMetadata extends org.apache.maven.artifact.metadata.ArtifactMetadata {
|
||||
|
||||
int RELEASE = 1;
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* Error while deploying repository metadata.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class RepositoryMetadataDeploymentException extends Throwable {
|
||||
public RepositoryMetadataDeploymentException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* Error while installing repository metadata.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class RepositoryMetadataInstallationException extends Throwable {
|
||||
public RepositoryMetadataInstallationException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.artifact.repository.RepositoryRequest;
|
|||
/**
|
||||
* RepositoryMetadataManager
|
||||
*/
|
||||
@Deprecated
|
||||
public interface RepositoryMetadataManager {
|
||||
|
||||
void resolve(RepositoryMetadata repositoryMetadata, RepositoryRequest repositoryRequest)
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* Problem storing the repository metadata in the local repository.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class RepositoryMetadataReadException extends Exception {
|
||||
public RepositoryMetadataReadException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.artifact.repository.metadata;
|
|||
* Error while retrieving repository metadata from the repository.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class RepositoryMetadataResolutionException extends Exception {
|
||||
public RepositoryMetadataResolutionException(String message) {
|
||||
super(message);
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
*
|
||||
* TODO split instantiation (versioning, plugin mappings) from definition
|
||||
*/
|
||||
@Deprecated
|
||||
public class SnapshotArtifactRepositoryMetadata extends AbstractRepositoryMetadata {
|
||||
private Artifact artifact;
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.maven.settings.Server;
|
|||
* to process a POMs dependencies.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactResolutionRequest implements RepositoryRequest {
|
||||
private static final String LS = System.lineSeparator();
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
* complex requiring a long list of checks, need to create a parent/interface/encapsulation
|
||||
* for the types of exceptions
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactResolutionResult {
|
||||
private static final String LS = System.lineSeparator();
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.wagon.events.TransferListener;
|
|||
/**
|
||||
*/
|
||||
// Just hide the one method we want behind the RepositorySystem interface.
|
||||
@Deprecated
|
||||
public interface ArtifactResolver {
|
||||
|
||||
ArtifactResolutionResult resolve(ArtifactResolutionRequest request);
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.codehaus.plexus.logging.Logger;
|
|||
* Send resolution events to the debug log.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class DebugResolutionListener implements ResolutionListener, ResolutionListenerForDepMgmt {
|
||||
private Logger logger;
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ import org.eclipse.aether.resolution.ArtifactResult;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultArtifactResolver implements ArtifactResolver, Disposable {
|
||||
@Inject
|
||||
private Logger logger;
|
||||
|
|
|
@ -29,6 +29,7 @@ import java.util.List;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultResolutionErrorHandler implements ResolutionErrorHandler {
|
||||
|
||||
public void throwErrors(ArtifactResolutionRequest request, ArtifactResolutionResult result)
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.apache.maven.artifact.resolver;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ResolutionErrorHandler {
|
||||
|
||||
void throwErrors(ArtifactResolutionRequest request, ArtifactResolutionResult result)
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.apache.maven.artifact.versioning.VersionRange;
|
|||
* Listens to the resolution process and handles events.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ResolutionListener {
|
||||
String ROLE = ResolutionListener.class.getName();
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
/**
|
||||
* ResolutionNode
|
||||
*/
|
||||
@Deprecated
|
||||
public class ResolutionNode {
|
||||
private Artifact artifact;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
* the remote repositories where attempts were made to resolve the artifacts.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnresolvedArtifacts {
|
||||
private Artifact originatingArtifact;
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.codehaus.plexus.logging.Logger;
|
|||
* Send resolution warning events to the warning log.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class WarningResolutionListener implements ResolutionListener {
|
||||
private Logger logger;
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.maven.artifact.Artifact;
|
|||
/**
|
||||
* InversionArtifactFilter
|
||||
*/
|
||||
@Deprecated
|
||||
public class InversionArtifactFilter implements ArtifactFilter {
|
||||
private final ArtifactFilter toInvert;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.apache.maven.artifact.Artifact;
|
|||
* Apply multiple filters, accepting an artifact if at least one of the filters accepts it.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class OrArtifactFilter implements ArtifactFilter {
|
||||
|
||||
private Set<ArtifactFilter> filters;
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.maven.artifact.resolver.filter;
|
|||
import org.apache.maven.artifact.Artifact;
|
||||
|
||||
/** Artifact Filter which filters on artifact type */
|
||||
@Deprecated
|
||||
public class TypeArtifactFilter implements ArtifactFilter {
|
||||
private String type = "jar";
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ import org.codehaus.plexus.component.repository.exception.ComponentLookupExcepti
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultPluginManager implements PluginManager {
|
||||
|
||||
private final PlexusContainer container;
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.maven.artifact.InvalidRepositoryException;
|
|||
/**
|
||||
* Error constructing an artifact repository.
|
||||
*/
|
||||
@Deprecated
|
||||
public class MissingRepositoryElementException extends InvalidRepositoryException {
|
||||
|
||||
public MissingRepositoryElementException(String message, String repositoryId) {
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.maven.model.Model;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultModelInheritanceAssembler implements ModelInheritanceAssembler {
|
||||
@Override
|
||||
public void assembleModelInheritance(Model child, Model parent, String childPathAdjustment) {
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public class ModelValidationResult {
|
||||
|
||||
/** */
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.reporting;
|
|||
* An exception occurring during the execution of a Maven report.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MavenReportException extends Exception {
|
||||
public MavenReportException(String msg) {
|
||||
super(msg);
|
||||
|
|
|
@ -23,6 +23,7 @@ package org.apache.maven.repository;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MavenArtifactMetadata {
|
||||
public static final String DEFAULT_TYPE = "jar";
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import java.util.Collection;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraph {
|
||||
/** all graph nodes */
|
||||
Collection<MetadataGraphNode> nodes;
|
||||
|
|
|
@ -26,6 +26,7 @@ import java.util.List;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraphNode {
|
||||
/** node payload */
|
||||
MavenArtifactMetadata metadata;
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataResolutionRequest {
|
||||
private MavenArtifactMetadata mad;
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataResolutionResult {
|
||||
private Artifact originatingArtifact;
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.settings.Mirror;
|
|||
* Handles the selection of mirrors for repositories.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface MirrorSelector {
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
/**
|
||||
* UserLocalArtifactRepository
|
||||
*/
|
||||
@Deprecated
|
||||
public class UserLocalArtifactRepository extends LocalArtifactRepository {
|
||||
private ArtifactRepository localRepository;
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.apache.maven.model.Dependency;
|
|||
* Thrown if a dependency has an invalid version.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class VersionNotFoundException extends Exception {
|
||||
private Dependency dependency;
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.maven.wagon.TransferFailedException;
|
|||
* Occurs when a download checksum fails.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class ChecksumFailedException extends TransferFailedException {
|
||||
public ChecksumFailedException(String s) {
|
||||
super(s);
|
||||
|
|
|
@ -45,6 +45,7 @@ import org.codehaus.plexus.logging.Logger;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultUpdateCheckManager extends AbstractLogEnabled implements UpdateCheckManager {
|
||||
|
||||
private static final String ERROR_KEY_SUFFIX = ".error";
|
||||
|
|
|
@ -66,6 +66,7 @@ import org.eclipse.aether.util.ConfigUtils;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultWagonManager implements WagonManager {
|
||||
|
||||
private static final String[] CHECKSUM_IDS = {"md5", "sha1"};
|
||||
|
|
|
@ -84,6 +84,7 @@ import org.eclipse.aether.repository.RemoteRepository;
|
|||
*/
|
||||
@Named("default")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class LegacyRepositorySystem implements RepositorySystem {
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.maven.repository.legacy;
|
|||
import org.apache.maven.repository.ArtifactTransferResource;
|
||||
import org.apache.maven.wagon.resource.Resource;
|
||||
|
||||
@Deprecated
|
||||
class MavenArtifact implements ArtifactTransferResource {
|
||||
|
||||
private String repositoryUrl;
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.apache.maven.wagon.resource.Resource;
|
|||
/**
|
||||
* TransferListenerAdapter
|
||||
*/
|
||||
@Deprecated
|
||||
public class TransferListenerAdapter implements TransferListener {
|
||||
|
||||
private final ArtifactTransferListener listener;
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
|
|||
/**
|
||||
* UpdateCheckManager
|
||||
*/
|
||||
@Deprecated
|
||||
public interface UpdateCheckManager {
|
||||
|
||||
boolean isUpdateRequired(Artifact artifact, ArtifactRepository repository);
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.maven.wagon.TransferFailedException;
|
|||
/**
|
||||
* WagonConfigurationException
|
||||
*/
|
||||
@Deprecated
|
||||
public class WagonConfigurationException extends TransferFailedException {
|
||||
|
||||
static final long serialVersionUID = 1;
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.wagon.repository.Repository;
|
|||
/**
|
||||
* WagonManager
|
||||
*/
|
||||
@Deprecated
|
||||
public interface WagonManager {
|
||||
@Deprecated
|
||||
Wagon getWagon(String protocol) throws UnsupportedProtocolException;
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
|
||||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
||||
|
||||
@Deprecated
|
||||
public interface ArtifactRepositoryFactory {
|
||||
|
||||
String DEFAULT_LAYOUT_ID = "default";
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout2;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultArtifactRepositoryFactory implements ArtifactRepositoryFactory {
|
||||
// TODO use settings?
|
||||
private String globalUpdatePolicy;
|
||||
|
|
|
@ -60,6 +60,7 @@ import org.codehaus.plexus.logging.Logger;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultLegacyArtifactCollector implements LegacyArtifactCollector {
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.maven.artifact.resolver.ResolutionNode;
|
|||
* Determines which version of an artifact to use when there are conflicting declarations.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ConflictResolver {
|
||||
String ROLE = ConflictResolver.class.getName();
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ package org.apache.maven.repository.legacy.resolver.conflict;
|
|||
* @see ConflictResolver
|
||||
* @since 3.0
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ConflictResolverFactory {
|
||||
// constants --------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ package org.apache.maven.repository.legacy.resolver.conflict;
|
|||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
@Deprecated
|
||||
public class ConflictResolverNotFoundException extends Exception {
|
||||
// constants --------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultConflictResolverFactory implements ConflictResolverFactory, Contextualizable {
|
||||
// fields -----------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.artifact.resolver.ResolutionNode;
|
|||
*/
|
||||
@Named("farthest")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class FarthestConflictResolver implements ConflictResolver {
|
||||
// ConflictResolver methods -----------------------------------------------
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.artifact.resolver.ResolutionNode;
|
|||
*/
|
||||
@Named("nearest")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class NearestConflictResolver implements ConflictResolver {
|
||||
// ConflictResolver methods -----------------------------------------------
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
*/
|
||||
@Named("newest")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class NewestConflictResolver implements ConflictResolver {
|
||||
// ConflictResolver methods -----------------------------------------------
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
|
|||
*/
|
||||
@Named("oldest")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class OldestConflictResolver implements ConflictResolver {
|
||||
// ConflictResolver methods -----------------------------------------------
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.codehaus.plexus.logging.AbstractLogEnabled;
|
|||
*
|
||||
* TODO try and refactor to remove abstract methods - not particular happy about current design
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractVersionTransformation extends AbstractLogEnabled implements ArtifactTransformation {
|
||||
@Inject
|
||||
protected RepositoryMetadataManager repositoryMetadataManager;
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactTransformation {
|
||||
String ROLE = ArtifactTransformation.class.getName();
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
|||
/**
|
||||
* Manages multiple ArtifactTransformation instances and applies them in succession.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactTransformationManager {
|
||||
String ROLE = ArtifactTransformationManager.class.getName();
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultArtifactTransformationManager implements ArtifactTransformationManager {
|
||||
|
||||
private List<ArtifactTransformation> artifactTransformations;
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
|||
*/
|
||||
@Named("latest")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class LatestArtifactTransformation extends AbstractVersionTransformation {
|
||||
|
||||
public void transformForResolve(Artifact artifact, RepositoryRequest request)
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
|||
*/
|
||||
@Named("release")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class ReleaseArtifactTransformation extends AbstractVersionTransformation {
|
||||
|
||||
public void transformForResolve(Artifact artifact, RepositoryRequest request)
|
||||
|
|
|
@ -44,6 +44,7 @@ import org.codehaus.plexus.util.StringUtils;
|
|||
*/
|
||||
@Named("snapshot")
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class SnapshotTransformation extends AbstractVersionTransformation {
|
||||
private static final String DEFAULT_SNAPSHOT_TIMESTAMP_FORMAT = "yyyyMMdd.HHmmss";
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
* Artifact Metadata that is resolved independent of Artifact itself.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class ArtifactMetadata {
|
||||
/**
|
||||
* standard glorified artifact coordinates
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class ClasspathContainer implements Iterable<ArtifactMetadata> {
|
||||
private List<ArtifactMetadata> classpath;
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ClasspathTransformation {
|
||||
String ROLE = ClasspathTransformation.class.getName();
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultClasspathTransformation implements ClasspathTransformation {
|
||||
@Inject
|
||||
GraphConflictResolver conflictResolver;
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.codehaus.plexus.component.annotations.Configuration;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultGraphConflictResolutionPolicy implements GraphConflictResolutionPolicy {
|
||||
/**
|
||||
* artifact, closer to the entry point, is selected
|
||||
|
|
|
@ -34,6 +34,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
@Deprecated
|
||||
public class DefaultGraphConflictResolver implements GraphConflictResolver {
|
||||
/**
|
||||
* artifact, closer to the entry point, is selected
|
||||
|
|
|
@ -22,6 +22,7 @@ package org.apache.maven.repository.metadata;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class GraphConflictResolutionException extends Exception {
|
||||
private static final long serialVersionUID = 2677613140287940255L;
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ package org.apache.maven.repository.metadata;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GraphConflictResolutionPolicy {
|
||||
String ROLE = GraphConflictResolutionPolicy.class.getName();
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
* Different implementations will implement different conflict resolution policies.
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GraphConflictResolver {
|
||||
String ROLE = GraphConflictResolver.class.getName();
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraph {
|
||||
public static final int DEFAULT_VERTICES = 32;
|
||||
public static final int DEFAULT_EDGES = 64;
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraphEdge {
|
||||
String version;
|
||||
ArtifactScopeEnum scope;
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.apache.maven.repository.metadata;
|
|||
|
||||
/**
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraphTransformationException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -4029897098314019152L;
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.maven.artifact.ArtifactScopeEnum;
|
|||
* metadata graph vertice - just a wrapper around artifact's metadata
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataGraphVertex implements Comparable<MetadataGraphVertex> {
|
||||
ArtifactMetadata md;
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
|
|||
*
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataResolution {
|
||||
/** resolved MD */
|
||||
private ArtifactMetadata artifactMetadata;
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.maven.repository.metadata;
|
|||
/**
|
||||
* MetadataResolutionException
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataResolutionException extends Exception {
|
||||
|
||||
public MetadataResolutionException() {
|
||||
|
|
|
@ -22,6 +22,7 @@ import java.util.List;
|
|||
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
|
||||
@Deprecated
|
||||
public class MetadataResolutionRequest {
|
||||
protected ArtifactMetadata query;
|
||||
protected ArtifactRepository localRepository;
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.maven.repository.metadata;
|
|||
/**
|
||||
* MetadataResolutionRequestTypeEnum
|
||||
*/
|
||||
@Deprecated
|
||||
public enum MetadataResolutionRequestTypeEnum {
|
||||
tree(1),
|
||||
graph(2),
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.codehaus.plexus.component.repository.exception.ComponentLookupExcepti
|
|||
* Get rid of them after debugging
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public class MetadataResolutionResult {
|
||||
MetadataTreeNode treeRoot;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue