Search in sources :

Example 1 with Filter

use of org.apache.archiva.filter.Filter in project archiva by apache.

the class Maven2RepositoryStorage method isProjectVersion.

private boolean isProjectVersion(StorageAsset dir) {
    final String artifactId = dir.getParent().getName();
    final String projectVersion = dir.getName();
    // check if there is a POM artifact file to ensure it is a version directory
    Predicate<StorageAsset> filter;
    if (VersionUtil.isSnapshot(projectVersion)) {
        filter = new PomFilenameFilter(artifactId, projectVersion);
    } else {
        final String pomFile = artifactId + "-" + projectVersion + ".pom";
        filter = new PomFileFilter(pomFile);
    }
    if (dir.list().stream().filter(f -> !f.isContainer()).anyMatch(filter)) {
        return true;
    }
    // if a metadata file is present, check if this is the "version" directory, marking it as a project version
    ArchivaRepositoryMetadata metadata = readMetadata(dir);
    if (metadata != null && projectVersion.equals(metadata.getVersion())) {
        return true;
    }
    return false;
}
Also used : NoSuchFileException(java.nio.file.NoSuchFileException) Arrays(java.util.Arrays) ArchivaRepositoryMetadata(org.apache.archiva.model.ArchivaRepositoryMetadata) Filter(org.apache.archiva.filter.Filter) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) ZonedDateTime(java.time.ZonedDateTime) LoggerFactory(org.slf4j.LoggerFactory) DefaultModelBuilderFactory(org.apache.maven.model.building.DefaultModelBuilderFactory) RepositoryProblemFacet(org.apache.archiva.metadata.model.facets.RepositoryProblemFacet) StringUtils(org.apache.commons.lang3.StringUtils) ReleaseScheme(org.apache.archiva.repository.ReleaseScheme) MavenSystemManager(org.apache.archiva.maven.repository.MavenSystemManager) ModelBuilder(org.apache.maven.model.building.ModelBuilder) RepositoryProxyHandler(org.apache.archiva.proxy.model.RepositoryProxyHandler) Map(java.util.Map) ProjectMetadata(org.apache.archiva.metadata.model.ProjectMetadata) MavenMetadataReader(org.apache.archiva.maven.metadata.MavenMetadataReader) ItemSelector(org.apache.archiva.repository.content.ItemSelector) Try(org.apache.archiva.common.Try) ArtifactMetadata(org.apache.archiva.metadata.model.ArtifactMetadata) ContentItem(org.apache.archiva.repository.content.ContentItem) Predicate(java.util.function.Predicate) ProxyRegistry(org.apache.archiva.proxy.ProxyRegistry) Collection(java.util.Collection) RepositoryRegistry(org.apache.archiva.repository.RepositoryRegistry) ProxyDownloadException(org.apache.archiva.policies.ProxyDownloadException) ProxyConnector(org.apache.archiva.proxy.model.ProxyConnector) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) Set(java.util.Set) NetworkProxy(org.apache.archiva.proxy.model.NetworkProxy) Reader(java.io.Reader) WagonFactory(org.apache.archiva.maven.common.proxy.WagonFactory) Collectors(java.util.stream.Collectors) Scm(org.apache.maven.model.Scm) FileNotFoundException(java.io.FileNotFoundException) ZoneId(java.time.ZoneId) ManagedRepository(org.apache.archiva.repository.ManagedRepository) Relocation(org.apache.maven.model.Relocation) Organization(org.apache.maven.model.Organization) List(java.util.List) DistributionManagement(org.apache.maven.model.DistributionManagement) ReadMetadataRequest(org.apache.archiva.metadata.repository.storage.ReadMetadataRequest) ModelBuildingRequest(org.apache.maven.model.building.ModelBuildingRequest) PostConstruct(javax.annotation.PostConstruct) BaseRepositoryContentLayout(org.apache.archiva.repository.content.BaseRepositoryContentLayout) MavenXpp3Reader(org.apache.maven.model.io.xpp3.MavenXpp3Reader) Model(org.apache.maven.model.Model) RepositoryStorageMetadataNotFoundException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException) Artifact(org.apache.archiva.repository.content.Artifact) CiManagement(org.apache.maven.model.CiManagement) RepositoryPathTranslator(org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator) RelocationException(org.apache.archiva.metadata.repository.storage.RelocationException) Dependency(org.apache.maven.model.Dependency) ArchivaItemSelector(org.apache.archiva.repository.content.base.ArchivaItemSelector) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ProjectVersionMetadata(org.apache.archiva.metadata.model.ProjectVersionMetadata) RemoteRepository(org.apache.archiva.repository.RemoteRepository) Charset(java.nio.charset.Charset) Service(org.springframework.stereotype.Service) ChecksumAlgorithm(org.apache.archiva.checksum.ChecksumAlgorithm) RepositoryMetadataException(org.apache.archiva.repository.metadata.RepositoryMetadataException) Named(javax.inject.Named) IssueManagement(org.apache.maven.model.IssueManagement) ManagedRepositoryContent(org.apache.archiva.repository.ManagedRepositoryContent) SnapshotVersion(org.apache.archiva.model.SnapshotVersion) Logger(org.slf4j.Logger) ModelBuildingException(org.apache.maven.model.building.ModelBuildingException) Channels(java.nio.channels.Channels) VersionUtil(org.apache.archiva.common.utils.VersionUtil) IOException(java.io.IOException) License(org.apache.maven.model.License) RepositoryType(org.apache.archiva.repository.RepositoryType) ApplicationContext(org.springframework.context.ApplicationContext) ChecksummedFile(org.apache.archiva.checksum.ChecksummedFile) ModelProblem(org.apache.maven.model.building.ModelProblem) RepositoryStorageMetadataInvalidException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException) DefaultModelBuildingRequest(org.apache.maven.model.building.DefaultModelBuildingRequest) MailingList(org.apache.maven.model.MailingList) LayoutException(org.apache.archiva.repository.content.LayoutException) Collections(java.util.Collections) RepositoryStorage(org.apache.archiva.metadata.repository.storage.RepositoryStorage) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) ArchivaRepositoryMetadata(org.apache.archiva.model.ArchivaRepositoryMetadata)

Example 2 with Filter

use of org.apache.archiva.filter.Filter in project archiva by apache.

the class Maven2RepositoryStorage method listProjects.

@Override
public Collection<String> listProjects(String repoId, String namespace, Filter<String> filter) throws RepositoryStorageRuntimeException {
    StorageAsset dir = pathTranslator.toFile(getRepositoryBasedir(repoId), namespace);
    if (!(dir.exists() && dir.isContainer())) {
        return Collections.emptyList();
    }
    // scan all directories in the namespace, and only include those that are known to be projects
    final Predicate<StorageAsset> dFilter = new DirectoryFilter(filter);
    return dir.list().stream().filter(dFilter).filter(path -> isProject(path, filter)).map(path -> path.getName().toString()).sorted().collect(Collectors.toList());
}
Also used : NoSuchFileException(java.nio.file.NoSuchFileException) Arrays(java.util.Arrays) ArchivaRepositoryMetadata(org.apache.archiva.model.ArchivaRepositoryMetadata) Filter(org.apache.archiva.filter.Filter) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) ZonedDateTime(java.time.ZonedDateTime) LoggerFactory(org.slf4j.LoggerFactory) DefaultModelBuilderFactory(org.apache.maven.model.building.DefaultModelBuilderFactory) RepositoryProblemFacet(org.apache.archiva.metadata.model.facets.RepositoryProblemFacet) StringUtils(org.apache.commons.lang3.StringUtils) ReleaseScheme(org.apache.archiva.repository.ReleaseScheme) MavenSystemManager(org.apache.archiva.maven.repository.MavenSystemManager) ModelBuilder(org.apache.maven.model.building.ModelBuilder) RepositoryProxyHandler(org.apache.archiva.proxy.model.RepositoryProxyHandler) Map(java.util.Map) ProjectMetadata(org.apache.archiva.metadata.model.ProjectMetadata) MavenMetadataReader(org.apache.archiva.maven.metadata.MavenMetadataReader) ItemSelector(org.apache.archiva.repository.content.ItemSelector) Try(org.apache.archiva.common.Try) ArtifactMetadata(org.apache.archiva.metadata.model.ArtifactMetadata) ContentItem(org.apache.archiva.repository.content.ContentItem) Predicate(java.util.function.Predicate) ProxyRegistry(org.apache.archiva.proxy.ProxyRegistry) Collection(java.util.Collection) RepositoryRegistry(org.apache.archiva.repository.RepositoryRegistry) ProxyDownloadException(org.apache.archiva.policies.ProxyDownloadException) ProxyConnector(org.apache.archiva.proxy.model.ProxyConnector) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) Set(java.util.Set) NetworkProxy(org.apache.archiva.proxy.model.NetworkProxy) Reader(java.io.Reader) WagonFactory(org.apache.archiva.maven.common.proxy.WagonFactory) Collectors(java.util.stream.Collectors) Scm(org.apache.maven.model.Scm) FileNotFoundException(java.io.FileNotFoundException) ZoneId(java.time.ZoneId) ManagedRepository(org.apache.archiva.repository.ManagedRepository) Relocation(org.apache.maven.model.Relocation) Organization(org.apache.maven.model.Organization) List(java.util.List) DistributionManagement(org.apache.maven.model.DistributionManagement) ReadMetadataRequest(org.apache.archiva.metadata.repository.storage.ReadMetadataRequest) ModelBuildingRequest(org.apache.maven.model.building.ModelBuildingRequest) PostConstruct(javax.annotation.PostConstruct) BaseRepositoryContentLayout(org.apache.archiva.repository.content.BaseRepositoryContentLayout) MavenXpp3Reader(org.apache.maven.model.io.xpp3.MavenXpp3Reader) Model(org.apache.maven.model.Model) RepositoryStorageMetadataNotFoundException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException) Artifact(org.apache.archiva.repository.content.Artifact) CiManagement(org.apache.maven.model.CiManagement) RepositoryPathTranslator(org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator) RelocationException(org.apache.archiva.metadata.repository.storage.RelocationException) Dependency(org.apache.maven.model.Dependency) ArchivaItemSelector(org.apache.archiva.repository.content.base.ArchivaItemSelector) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ProjectVersionMetadata(org.apache.archiva.metadata.model.ProjectVersionMetadata) RemoteRepository(org.apache.archiva.repository.RemoteRepository) Charset(java.nio.charset.Charset) Service(org.springframework.stereotype.Service) ChecksumAlgorithm(org.apache.archiva.checksum.ChecksumAlgorithm) RepositoryMetadataException(org.apache.archiva.repository.metadata.RepositoryMetadataException) Named(javax.inject.Named) IssueManagement(org.apache.maven.model.IssueManagement) ManagedRepositoryContent(org.apache.archiva.repository.ManagedRepositoryContent) SnapshotVersion(org.apache.archiva.model.SnapshotVersion) Logger(org.slf4j.Logger) ModelBuildingException(org.apache.maven.model.building.ModelBuildingException) Channels(java.nio.channels.Channels) VersionUtil(org.apache.archiva.common.utils.VersionUtil) IOException(java.io.IOException) License(org.apache.maven.model.License) RepositoryType(org.apache.archiva.repository.RepositoryType) ApplicationContext(org.springframework.context.ApplicationContext) ChecksummedFile(org.apache.archiva.checksum.ChecksummedFile) ModelProblem(org.apache.maven.model.building.ModelProblem) RepositoryStorageMetadataInvalidException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException) DefaultModelBuildingRequest(org.apache.maven.model.building.DefaultModelBuildingRequest) MailingList(org.apache.maven.model.MailingList) LayoutException(org.apache.archiva.repository.content.LayoutException) Collections(java.util.Collections) RepositoryStorage(org.apache.archiva.metadata.repository.storage.RepositoryStorage) StorageAsset(org.apache.archiva.repository.storage.StorageAsset)

Example 3 with Filter

use of org.apache.archiva.filter.Filter in project archiva by apache.

the class Maven2RepositoryStorage method listNamespaces.

@Override
public Collection<String> listNamespaces(String repoId, String namespace, Filter<String> filter) throws RepositoryStorageRuntimeException {
    StorageAsset dir = pathTranslator.toFile(getRepositoryBasedir(repoId), namespace);
    if (!(dir.exists()) && !dir.isContainer()) {
        return Collections.emptyList();
    }
    // scan all the directories which are potential namespaces. Any directories known to be projects are excluded
    Predicate<StorageAsset> dFilter = new DirectoryFilter(filter);
    return dir.list().stream().filter(dFilter).filter(path -> !isProject(path, filter)).map(path -> path.getName().toString()).sorted().collect(Collectors.toList());
}
Also used : NoSuchFileException(java.nio.file.NoSuchFileException) Arrays(java.util.Arrays) ArchivaRepositoryMetadata(org.apache.archiva.model.ArchivaRepositoryMetadata) Filter(org.apache.archiva.filter.Filter) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) ZonedDateTime(java.time.ZonedDateTime) LoggerFactory(org.slf4j.LoggerFactory) DefaultModelBuilderFactory(org.apache.maven.model.building.DefaultModelBuilderFactory) RepositoryProblemFacet(org.apache.archiva.metadata.model.facets.RepositoryProblemFacet) StringUtils(org.apache.commons.lang3.StringUtils) ReleaseScheme(org.apache.archiva.repository.ReleaseScheme) MavenSystemManager(org.apache.archiva.maven.repository.MavenSystemManager) ModelBuilder(org.apache.maven.model.building.ModelBuilder) RepositoryProxyHandler(org.apache.archiva.proxy.model.RepositoryProxyHandler) Map(java.util.Map) ProjectMetadata(org.apache.archiva.metadata.model.ProjectMetadata) MavenMetadataReader(org.apache.archiva.maven.metadata.MavenMetadataReader) ItemSelector(org.apache.archiva.repository.content.ItemSelector) Try(org.apache.archiva.common.Try) ArtifactMetadata(org.apache.archiva.metadata.model.ArtifactMetadata) ContentItem(org.apache.archiva.repository.content.ContentItem) Predicate(java.util.function.Predicate) ProxyRegistry(org.apache.archiva.proxy.ProxyRegistry) Collection(java.util.Collection) RepositoryRegistry(org.apache.archiva.repository.RepositoryRegistry) ProxyDownloadException(org.apache.archiva.policies.ProxyDownloadException) ProxyConnector(org.apache.archiva.proxy.model.ProxyConnector) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) Set(java.util.Set) NetworkProxy(org.apache.archiva.proxy.model.NetworkProxy) Reader(java.io.Reader) WagonFactory(org.apache.archiva.maven.common.proxy.WagonFactory) Collectors(java.util.stream.Collectors) Scm(org.apache.maven.model.Scm) FileNotFoundException(java.io.FileNotFoundException) ZoneId(java.time.ZoneId) ManagedRepository(org.apache.archiva.repository.ManagedRepository) Relocation(org.apache.maven.model.Relocation) Organization(org.apache.maven.model.Organization) List(java.util.List) DistributionManagement(org.apache.maven.model.DistributionManagement) ReadMetadataRequest(org.apache.archiva.metadata.repository.storage.ReadMetadataRequest) ModelBuildingRequest(org.apache.maven.model.building.ModelBuildingRequest) PostConstruct(javax.annotation.PostConstruct) BaseRepositoryContentLayout(org.apache.archiva.repository.content.BaseRepositoryContentLayout) MavenXpp3Reader(org.apache.maven.model.io.xpp3.MavenXpp3Reader) Model(org.apache.maven.model.Model) RepositoryStorageMetadataNotFoundException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException) Artifact(org.apache.archiva.repository.content.Artifact) CiManagement(org.apache.maven.model.CiManagement) RepositoryPathTranslator(org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator) RelocationException(org.apache.archiva.metadata.repository.storage.RelocationException) Dependency(org.apache.maven.model.Dependency) ArchivaItemSelector(org.apache.archiva.repository.content.base.ArchivaItemSelector) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ProjectVersionMetadata(org.apache.archiva.metadata.model.ProjectVersionMetadata) RemoteRepository(org.apache.archiva.repository.RemoteRepository) Charset(java.nio.charset.Charset) Service(org.springframework.stereotype.Service) ChecksumAlgorithm(org.apache.archiva.checksum.ChecksumAlgorithm) RepositoryMetadataException(org.apache.archiva.repository.metadata.RepositoryMetadataException) Named(javax.inject.Named) IssueManagement(org.apache.maven.model.IssueManagement) ManagedRepositoryContent(org.apache.archiva.repository.ManagedRepositoryContent) SnapshotVersion(org.apache.archiva.model.SnapshotVersion) Logger(org.slf4j.Logger) ModelBuildingException(org.apache.maven.model.building.ModelBuildingException) Channels(java.nio.channels.Channels) VersionUtil(org.apache.archiva.common.utils.VersionUtil) IOException(java.io.IOException) License(org.apache.maven.model.License) RepositoryType(org.apache.archiva.repository.RepositoryType) ApplicationContext(org.springframework.context.ApplicationContext) ChecksummedFile(org.apache.archiva.checksum.ChecksummedFile) ModelProblem(org.apache.maven.model.building.ModelProblem) RepositoryStorageMetadataInvalidException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException) DefaultModelBuildingRequest(org.apache.maven.model.building.DefaultModelBuildingRequest) MailingList(org.apache.maven.model.MailingList) LayoutException(org.apache.archiva.repository.content.LayoutException) Collections(java.util.Collections) RepositoryStorage(org.apache.archiva.metadata.repository.storage.RepositoryStorage) StorageAsset(org.apache.archiva.repository.storage.StorageAsset)

Example 4 with Filter

use of org.apache.archiva.filter.Filter in project archiva by apache.

the class Maven2RepositoryStorage method readArtifactsMetadata.

@Override
public Collection<ArtifactMetadata> readArtifactsMetadata(ReadMetadataRequest readMetadataRequest) throws RepositoryStorageRuntimeException {
    StorageAsset dir = pathTranslator.toFile(getRepositoryBasedir(readMetadataRequest.getRepositoryId()), readMetadataRequest.getNamespace(), readMetadataRequest.getProjectId(), readMetadataRequest.getProjectVersion());
    if (!(dir.exists() && dir.isContainer())) {
        return Collections.emptyList();
    }
    // all files that are not metadata and not a checksum / signature are considered artifacts
    final Predicate<StorageAsset> dFilter = new ArtifactDirectoryFilter(readMetadataRequest.getFilter());
    // Returns a map TRUE -> (success values), FALSE -> (Exceptions)
    Map<Boolean, List<Try<ArtifactMetadata>>> result = dir.list().stream().filter(dFilter).map(path -> {
        try {
            return Try.success(getArtifactFromFile(readMetadataRequest.getRepositoryId(), readMetadataRequest.getNamespace(), readMetadataRequest.getProjectId(), readMetadataRequest.getProjectVersion(), path));
        } catch (Exception e) {
            log.debug("Could not create metadata for {}:  {}", path, e.getMessage(), e);
            return Try.<ArtifactMetadata>failure(e);
        }
    }).collect(Collectors.groupingBy(Try::isSuccess));
    if (result.containsKey(Boolean.FALSE) && result.get(Boolean.FALSE).size() > 0 && (!result.containsKey(Boolean.TRUE) || result.get(Boolean.TRUE).size() == 0)) {
        log.error("Could not get artifact metadata. Directory: {}. Number of errors {}.", dir, result.get(Boolean.FALSE).size());
        Try<ArtifactMetadata> failure = result.get(Boolean.FALSE).get(0);
        log.error("Sample exception {}", failure.getError().getMessage(), failure.getError());
        throw new RepositoryStorageRuntimeException(readMetadataRequest.getRepositoryId(), "Could not retrieve metadata of the files");
    } else {
        if (!result.containsKey(Boolean.TRUE) || result.get(Boolean.TRUE) == null) {
            return Collections.emptyList();
        }
        return result.get(Boolean.TRUE).stream().map(tr -> tr.get()).collect(Collectors.toList());
    }
}
Also used : NoSuchFileException(java.nio.file.NoSuchFileException) Arrays(java.util.Arrays) ArchivaRepositoryMetadata(org.apache.archiva.model.ArchivaRepositoryMetadata) Filter(org.apache.archiva.filter.Filter) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) ZonedDateTime(java.time.ZonedDateTime) LoggerFactory(org.slf4j.LoggerFactory) DefaultModelBuilderFactory(org.apache.maven.model.building.DefaultModelBuilderFactory) RepositoryProblemFacet(org.apache.archiva.metadata.model.facets.RepositoryProblemFacet) StringUtils(org.apache.commons.lang3.StringUtils) ReleaseScheme(org.apache.archiva.repository.ReleaseScheme) MavenSystemManager(org.apache.archiva.maven.repository.MavenSystemManager) ModelBuilder(org.apache.maven.model.building.ModelBuilder) RepositoryProxyHandler(org.apache.archiva.proxy.model.RepositoryProxyHandler) Map(java.util.Map) ProjectMetadata(org.apache.archiva.metadata.model.ProjectMetadata) MavenMetadataReader(org.apache.archiva.maven.metadata.MavenMetadataReader) ItemSelector(org.apache.archiva.repository.content.ItemSelector) Try(org.apache.archiva.common.Try) ArtifactMetadata(org.apache.archiva.metadata.model.ArtifactMetadata) ContentItem(org.apache.archiva.repository.content.ContentItem) Predicate(java.util.function.Predicate) ProxyRegistry(org.apache.archiva.proxy.ProxyRegistry) Collection(java.util.Collection) RepositoryRegistry(org.apache.archiva.repository.RepositoryRegistry) ProxyDownloadException(org.apache.archiva.policies.ProxyDownloadException) ProxyConnector(org.apache.archiva.proxy.model.ProxyConnector) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) Set(java.util.Set) NetworkProxy(org.apache.archiva.proxy.model.NetworkProxy) Reader(java.io.Reader) WagonFactory(org.apache.archiva.maven.common.proxy.WagonFactory) Collectors(java.util.stream.Collectors) Scm(org.apache.maven.model.Scm) FileNotFoundException(java.io.FileNotFoundException) ZoneId(java.time.ZoneId) ManagedRepository(org.apache.archiva.repository.ManagedRepository) Relocation(org.apache.maven.model.Relocation) Organization(org.apache.maven.model.Organization) List(java.util.List) DistributionManagement(org.apache.maven.model.DistributionManagement) ReadMetadataRequest(org.apache.archiva.metadata.repository.storage.ReadMetadataRequest) ModelBuildingRequest(org.apache.maven.model.building.ModelBuildingRequest) PostConstruct(javax.annotation.PostConstruct) BaseRepositoryContentLayout(org.apache.archiva.repository.content.BaseRepositoryContentLayout) MavenXpp3Reader(org.apache.maven.model.io.xpp3.MavenXpp3Reader) Model(org.apache.maven.model.Model) RepositoryStorageMetadataNotFoundException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException) Artifact(org.apache.archiva.repository.content.Artifact) CiManagement(org.apache.maven.model.CiManagement) RepositoryPathTranslator(org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator) RelocationException(org.apache.archiva.metadata.repository.storage.RelocationException) Dependency(org.apache.maven.model.Dependency) ArchivaItemSelector(org.apache.archiva.repository.content.base.ArchivaItemSelector) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Inject(javax.inject.Inject) ProjectVersionMetadata(org.apache.archiva.metadata.model.ProjectVersionMetadata) RemoteRepository(org.apache.archiva.repository.RemoteRepository) Charset(java.nio.charset.Charset) Service(org.springframework.stereotype.Service) ChecksumAlgorithm(org.apache.archiva.checksum.ChecksumAlgorithm) RepositoryMetadataException(org.apache.archiva.repository.metadata.RepositoryMetadataException) Named(javax.inject.Named) IssueManagement(org.apache.maven.model.IssueManagement) ManagedRepositoryContent(org.apache.archiva.repository.ManagedRepositoryContent) SnapshotVersion(org.apache.archiva.model.SnapshotVersion) Logger(org.slf4j.Logger) ModelBuildingException(org.apache.maven.model.building.ModelBuildingException) Channels(java.nio.channels.Channels) VersionUtil(org.apache.archiva.common.utils.VersionUtil) IOException(java.io.IOException) License(org.apache.maven.model.License) RepositoryType(org.apache.archiva.repository.RepositoryType) ApplicationContext(org.springframework.context.ApplicationContext) ChecksummedFile(org.apache.archiva.checksum.ChecksummedFile) ModelProblem(org.apache.maven.model.building.ModelProblem) RepositoryStorageMetadataInvalidException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException) DefaultModelBuildingRequest(org.apache.maven.model.building.DefaultModelBuildingRequest) MailingList(org.apache.maven.model.MailingList) LayoutException(org.apache.archiva.repository.content.LayoutException) Collections(java.util.Collections) RepositoryStorage(org.apache.archiva.metadata.repository.storage.RepositoryStorage) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) StorageAsset(org.apache.archiva.repository.storage.StorageAsset) List(java.util.List) ArrayList(java.util.ArrayList) MailingList(org.apache.maven.model.MailingList) ArtifactMetadata(org.apache.archiva.metadata.model.ArtifactMetadata) NoSuchFileException(java.nio.file.NoSuchFileException) RepositoryStorageRuntimeException(org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException) ProxyDownloadException(org.apache.archiva.policies.ProxyDownloadException) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) FileNotFoundException(java.io.FileNotFoundException) RepositoryStorageMetadataNotFoundException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException) RelocationException(org.apache.archiva.metadata.repository.storage.RelocationException) RepositoryMetadataException(org.apache.archiva.repository.metadata.RepositoryMetadataException) ModelBuildingException(org.apache.maven.model.building.ModelBuildingException) IOException(java.io.IOException) RepositoryStorageMetadataInvalidException(org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException) LayoutException(org.apache.archiva.repository.content.LayoutException)

Aggregations

FileNotFoundException (java.io.FileNotFoundException)4 IOException (java.io.IOException)4 Reader (java.io.Reader)4 Channels (java.nio.channels.Channels)4 Charset (java.nio.charset.Charset)4 NoSuchFileException (java.nio.file.NoSuchFileException)4 ZoneId (java.time.ZoneId)4 ZonedDateTime (java.time.ZonedDateTime)4 ArrayList (java.util.ArrayList)4 Arrays (java.util.Arrays)4 Collection (java.util.Collection)4 Collections (java.util.Collections)4 HashMap (java.util.HashMap)4 List (java.util.List)4 Map (java.util.Map)4 Set (java.util.Set)4 Predicate (java.util.function.Predicate)4 Collectors (java.util.stream.Collectors)4 PostConstruct (javax.annotation.PostConstruct)4 Inject (javax.inject.Inject)4