]> source.dussan.org Git - archiva.git/commitdiff
some progress
authorolivier lamy <olamy@apache.org>
Mon, 17 Jul 2017 08:41:14 +0000 (18:41 +1000)
committerolivier lamy <olamy@apache.org>
Mon, 17 Jul 2017 08:41:14 +0000 (18:41 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/archiva-base/archiva-indexer/src/test/java/org/apache/archiva/indexer/search/AbstractMavenRepositorySearch.java
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/ArchivaIndexingTaskExecutor.java
archiva-modules/plugins/problem-reports/pom.xml
archiva-modules/plugins/stage-repository-merge/pom.xml

index 58fdf68d51c1810af21cff4904c576d901c932a4..cab896bdbaba7fb80e348e4e6f4935dc6c6dc78c 100644 (file)
@@ -38,6 +38,7 @@ import org.apache.maven.index.NexusIndexer;
 import org.apache.maven.index.QueryCreator;
 import org.apache.maven.index.ScanningResult;
 import org.apache.maven.index.context.IndexingContext;
+import org.apache.maven.index.shaded.lucene.index.IndexUpgrader;
 import org.easymock.EasyMock;
 import org.easymock.IMocksControl;
 import org.junit.After;
@@ -242,13 +243,13 @@ public abstract class AbstractMavenRepositorySearch
         @Override
         public void scanningStarted( IndexingContext ctx )
         {
-
+            //
         }
 
         @Override
         public void scanningFinished( IndexingContext ctx, ScanningResult result )
         {
-
+            // no op
         }
 
         @Override
@@ -260,7 +261,9 @@ public abstract class AbstractMavenRepositorySearch
         @Override
         public void artifactDiscovered( ArtifactContext ac )
         {
-            log.debug( "artifactDiscovered {}:{}", ac.getArtifact().getPath(), ac.getArtifactInfo() );
+            log.debug( "artifactDiscovered {}:{}", //
+                       ac.getArtifact() == null ? "" : ac.getArtifact().getPath(), //
+                       ac.getArtifact() == null ? "" : ac.getArtifactInfo() );
         }
     }
 
index b585fb7826ca6c52b5fd992a691354c664598605..478473e9a1b52d9d462cb9e3ee51f8ed26573733 100644 (file)
@@ -232,7 +232,9 @@ public class ArchivaIndexingTaskExecutor
             if ( !repository.isSkipPackedIndexCreation() )
             {
 
-                IndexPackingRequest request = new IndexPackingRequest( context, context.getIndexDirectoryFile() );
+                IndexPackingRequest request = new IndexPackingRequest( context, //
+                                                                       context.acquireIndexSearcher().getIndexReader(), //
+                                                                       context.getIndexDirectoryFile() );
                 indexPacker.packIndex( request );
                 context.updateTimestamp( true );
 
index 20db52b9239e8f134bb018048e9da265551daabf..d08bccb6b830dd143fa8881c9963ed62fc298943 100644 (file)
         <executions>
           <execution>
             <id>test-repository</id>
-            <phase>generate-test-resources</phase>
+            <phase>process-test-classes</phase>
             <goals>
               <goal>unpack-dependencies</goal>
             </goals>
index d425434e0c4d3f0d268e395d591a7bb0e63c0efb..4023b24a175f1a00f2f37cd53d1a017c4ce5687b 100644 (file)
         <executions>
           <execution>
             <id>test-repository</id>
-            <phase>generate-test-resources</phase>
+            <phase>process-test-classes</phase>
             <goals>
               <goal>unpack-dependencies</goal>
             </goals>