diff options
author | Olivier Lamy <olamy@apache.org> | 2013-09-24 13:31:10 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-09-24 13:31:10 +0000 |
commit | ef1759b856de7ba5d31dc3fcc92fcea4516e5e28 (patch) | |
tree | 1bd15dd0ae09907c8cd39ef04784b568f7e0da64 /archiva-modules/archiva-scheduler | |
parent | 5a63e2b407a24de3831d47c18d4e71449222040b (diff) | |
download | archiva-ef1759b856de7ba5d31dc3fcc92fcea4516e5e28.tar.gz archiva-ef1759b856de7ba5d31dc3fcc92fcea4516e5e28.zip |
[MRM-1779] pom artifacts cannot be searched on Archiva 1.4-M4
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1525882 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java index 699d3f76f..3fc0981e9 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java @@ -160,6 +160,14 @@ public class ArchivaIndexingTaskExecutor if ( ac != null ) { + // MRM-1779 pom must be indexed too + // TODO make that configurable? + if ( artifactFile.getPath().endsWith( ".pom" ) ) + { + ac.getArtifactInfo().fextension = "pom"; + ac.getArtifactInfo().packaging = "pom"; + ac.getArtifactInfo().classifier = "pom"; + } if ( indexingTask.getAction().equals( ArtifactIndexingTask.Action.ADD ) ) { //IndexSearcher s = context.getIndexSearcher(); |