Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionUse
PathProcessororChecksumProcessorinstead.Use JSR-330 dependency injection (Eclipse Sisu, Guice) orRepositorySystemSupplierto obtain aRepositorySystem.Use JSR-330 dependency injection (Eclipse Sisu, Guice) orRepositorySystemSupplierto obtain aRepositorySystem.
-
Deprecated ClassesClassDescriptionThis class is deprecated and is unused in Resolver. Use
PathProcessorSupportinstead.Hazelcast support will be dropped.Hazelcast support will be dropped.Hazelcast support will be dropped.Hazelcast support will be dropped.Hazelcast support will be dropped.the use of class should be avoided, seeStringDigestUtiland file processor in SPI modulefor removal. Nothing is using this class within Resolver.Do not use this class; is not used in Resolver (see corresponding processor components inorg.eclipse.aether.spi.iopackage).Scope semantics belong to the consumer project since Resolver 2.0.0. Obtain the selector fromScopeManager.getDependencySelector(org.eclipse.aether.RepositorySystemSession, org.eclipse.aether.scope.ResolutionScope), or use the session created by theSessionBuilderSupplierof themaven-resolver-supplier-mvn3ormaven-resolver-supplier-mvn4module, which already carries the Maven scope-aware selectors.Scope semantics belong to the consumer project since Resolver 2.0.0. Obtain the selector fromScopeManager.getDependencySelector(org.eclipse.aether.RepositorySystemSession, org.eclipse.aether.scope.ResolutionScope), or use the session created by theSessionBuilderSupplierof themaven-resolver-supplier-mvn3ormaven-resolver-supplier-mvn4module, which already carries the Maven scope-aware selectors.useConfigurableVersionSelectorinsteadUseArtifactPredicateVersionFilterinstead.seePostorderDependencyNodeConsumerVisitorthat is more versatileseePreorderDependencyNodeConsumerVisitorthat is more versatile
-
Deprecated FieldsFieldDescriptionUse
aether.system.named.timeinstead.Useaether.system.named.timeUnitinstead.UseConfigurationProperties.HTTP_REDIRECT_MODEinstead.UseConfigurationProperties.HTTP_ORIGIN_SCOPED_HEADERSinstead.org.eclipse.aether.transport.apache.ApacheTransporterConfigurationKeys.DEFAULT_ORIGIN_SCOPED_HEADERSUseConfigurationProperties.HTTP_VERSIONinstead. This property is kept for backward compatibility and will be removed in future versions.UseConfigurationProperties.HTTP_ORIGIN_SCOPED_HEADERSinstead.UseConfigurationProperties.HTTP_REDIRECT_MODEinstead.UseConfigurationProperties.HTTP_ORIGIN_SCOPED_HEADERSinstead.UseConfigurationProperties.HTTP_REDIRECT_MODEinstead.use snapshot filter instead to always ban snapshots
-
Deprecated MethodsMethodDescriptionUse
Artifact.getPath()instead.UseArtifact.setPath(Path)instead.UseUpdateCheck.getPath()instead.UseUpdateCheck.setPath(Path)instead.UseDefaultVersionFilterContext.initialize(Dependency, VersionRangeResult)instead, which creates a new context and is safe to use from several threads.UseNameMappersto create name mappers instead.UseNameMappersto create name mappers instead.UseTrackingFileManager.delete(Path)instead.UseTrackingFileManager.read(Path)instead.UseTrackingFileManager.update(Path, Map)instead.use the JUnit 5@TempDirextension insteaduse the JUnit 5@TempDirextension insteaduse the JUnit 5@TempDirextension insteaduse the JUnit 5@TempDirextension insteaduse the JUnit 5@TempDirextension instead, which cleans up after itselfuseFiles.createDirectories(Path)insteaduseFiles.readAllBytes(Path)insteaduseFiles.write(Path, byte[])instead; it writes the array once, so forrepeat > 1build the repeated bytes firstuseFiles.write(Path, byte[])insteaduseFiles.write(Path, byte[])andFiles.setLastModifiedTime(Path, FileTime)insteadUseMergeableMetadata.merge(Path, Path)instead.UseMetadata.getPath()instead.UseMetadata.setPath(Path)instead.UseLocalArtifactResult.getPath()instead.UseLocalArtifactResult.setPath(Path)instead.UseLocalMetadataResult.getPath()instead.UseLocalMetadataResult.setPath(Path)instead.UseLocalRepository.getBasePath()instead.This method should not be used. Since version 2 Resolver internally distinguishes between artifact update policy and metadata update policy. This method was left only to preserve binary compatibility, and in reality invokesRepositoryPolicy.getArtifactUpdatePolicy().UseRepositoryEvent.Builder.setPath(Path)instead.UseRepositoryEvent.getPath()instead.UseArtifactResult.addException(ArtifactRepository, Exception)method instead.UseArtifactTransfer.getPath()instead.UseArtifactTransfer.setPath(Path)instead.UseMetadataTransfer.getPath()instead.UseMetadataTransfer.setPath(Path)instead.UseGetTask.getDataPath()instead.UseGetTask.setDataPath(Path)instead.UseGetTask.setDataPath(Path, boolean)instead.UsePutTask.getDataPath()instead.UsePutTask.setDataPath(Path)instead.UseTransferResource.getPath()instead.use SPI checksum selector insteaduse SPI checksum selector insteaduse SPI FileProcessor to read and write checksum filesuseNodeListGenerator.getPaths()instead
-
Deprecated ConstructorsConstructorDescriptionThis way of creating session should be avoided, is in place just to offer backward binary compatibility with Resolver 1.x using code, but offers reduced functionality. Use
RepositorySystem.createSessionBuilder()instead.a server created without a bootstrap token refusesIpcMessages.REQUEST_STOPrequests; useIpcServer(SocketFamily, String)instead.UseLocalRepository(Path)instead.UseLocalRepository(Path, String)instead.UseLocalRepository(java.nio.file.Path)instead.UseArtifactDownload(Artifact, String, Path, String)instead.UseArtifactUpload(Artifact, Path)instead.UseMetadataDownload(Metadata, String, Path, String)instead.UseMetadataUpload(Metadata, Path)instead.Do not use this constructor, it lacks information.UseChecksumFailureException.noneAvailable(String, String)or other suitable helper method instead.UseChecksumFailureException.mismatch(String, String, String)or other suitable helper method instead.UseChecksumFailureException.processingFailure(String, Throwable)or other helper method instead.UseChecksumFailureException.processingFailure(String, Throwable)or other helper method instead.