diff options
author | Brett Porter <brett@apache.org> | 2009-12-24 04:02:11 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-12-24 04:02:11 +0000 |
commit | 1f1252456ab9bbf2b5575f8d22d993e91e7bccb1 (patch) | |
tree | 6ea9c3af1fdfeeb141ba7400eb688c70f211be4a /archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer | |
parent | 79de06cf3e28ff6e0bb6b917e2a6ddcd2cbeef4b (diff) | |
download | archiva-1f1252456ab9bbf2b5575f8d22d993e91e7bccb1.tar.gz archiva-1f1252456ab9bbf2b5575f8d22d993e91e7bccb1.zip |
[MRM-1283] keep track of incomplete metadata so that it can self correct and show a meaningful message to the user
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@893691 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer')
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java index ae967dae8..fec93b15e 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-metadata-consumer/src/main/java/org/apache/archiva/consumers/metadata/ArchivaMetadataCreationConsumer.java @@ -166,8 +166,9 @@ public class ArchivaMetadataCreationConsumer ProjectVersionMetadata versionMetadata = null; try { - versionMetadata = storageResolver.getProjectVersion( repository.getId(), artifact.getGroupId(), artifact.getArtifactId(), - projectVersion ); + versionMetadata = + storageResolver.getProjectVersion( repository.getId(), artifact.getGroupId(), artifact.getArtifactId(), + projectVersion ); } catch ( MetadataResolutionException e ) { @@ -180,6 +181,7 @@ public class ArchivaMetadataCreationConsumer log.warn( "Missing or invalid POM for artifact: " + path + "; creating empty metadata" ); versionMetadata = new ProjectVersionMetadata(); versionMetadata.setId( projectVersion ); + versionMetadata.setIncomplete( true ); createVersionMetadata = true; } |