diff options
author | Olivier Lamy <olamy@apache.org> | 2011-11-17 21:02:08 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-11-17 21:02:08 +0000 |
commit | 6eb766e9d96a71fe8c6be5cd5caf6b83078f2c5f (patch) | |
tree | 3741d54569b0125add42fbf52b57736cd4728ff8 /archiva-modules/archiva-base | |
parent | 098ffbc90a466752f64f5d8bca1300d81550c6f6 (diff) | |
download | archiva-6eb766e9d96a71fe8c6be5cd5caf6b83078f2c5f.tar.gz archiva-6eb766e9d96a71fe8c6be5cd5caf6b83078f2c5f.zip |
not return pom artifacts when searching artifacts
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1203364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r-- | archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java index 0ba4559bd..1f1b1c798 100644 --- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java +++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java @@ -457,6 +457,10 @@ public class NexusRepositorySearch for ( ArtifactInfo artifactInfo : artifactInfos ) { + if ( StringUtils.equalsIgnoreCase( "pom", artifactInfo.fextension ) ) + { + continue; + } String id = SearchUtil.getHitId( artifactInfo.groupId, artifactInfo.artifactId, artifactInfo.classifier, artifactInfo.packaging ); Map<String, SearchResultHit> hitsMap = results.getHitsMap(); |