From ef1759b856de7ba5d31dc3fcc92fcea4516e5e28 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 24 Sep 2013 13:31:10 +0000 Subject: [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 --- .../archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'archiva-modules/archiva-scheduler') 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(); -- cgit v1.2.3