diff options
author | Brett Porter <brett@apache.org> | 2011-03-29 12:42:47 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2011-03-29 12:42:47 +0000 |
commit | 076a33f877500585b17b5f8f68a3d0fb28333f19 (patch) | |
tree | 26a41f175c73b459a1f47f8c8e53b8b757a8d468 /archiva-modules/metadata | |
parent | bed7aa1b59b2a4a824a89a2e492567330d08ffb9 (diff) | |
download | archiva-076a33f877500585b17b5f8f68a3d0fb28333f19.tar.gz archiva-076a33f877500585b17b5f8f68a3d0fb28333f19.zip |
[MRM-1327] fix 'used by' to work under JCR store. Remove updateProjectReferences API
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1086569 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
2 files changed, 0 insertions, 18 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java index 3e61ab990..08115b1cb 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java @@ -20,7 +20,6 @@ package org.apache.archiva.metadata.repository; */ import org.apache.archiva.metadata.model.ArtifactMetadata; -import org.apache.archiva.metadata.model.Dependency; import org.apache.archiva.metadata.model.ProjectMetadata; import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.metadata.model.ProjectVersionReference; @@ -108,19 +107,6 @@ public class DefaultMetadataResolver ref.setProjectId( projectId ); ref.setProjectVersion( projectVersion ); ref.setReferenceType( ProjectVersionReference.ReferenceType.DEPENDENCY ); - for ( Dependency dependency : metadata.getDependencies() ) - { - try - { - metadataRepository.updateProjectReference( repoId, dependency.getGroupId(), - dependency.getArtifactId(), - dependency.getVersion(), ref ); - } - catch ( MetadataRepositoryException e ) - { - log.warn( "Unable to persist resolved information: " + e.getMessage(), e ); - } - } } try { diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java index 727a4e7a5..4e8450070 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java @@ -48,10 +48,6 @@ public interface MetadataRepository ProjectVersionMetadata versionMetadata ) throws MetadataRepositoryException; - void updateProjectReference( String repositoryId, String namespace, String projectId, String projectVersion, - ProjectVersionReference reference ) - throws MetadataRepositoryException; - void updateNamespace( String repositoryId, String namespace ) throws MetadataRepositoryException; |