packer.packIndex( request );
// read it up and verify, but stay "low level", directly consume the GZ file and count
FileInputStream fis = new FileInputStream( new File( packTargetDir, "nexus-maven-repository-index.gz" ) );
IndexDataReader reader = new IndexDataReader( fis );
try
{
// read header and neglect it
reader.readHeader();
// read docs
int totalDocs = 0;
int specialDocs = 0;
int artifactDocs = 0;
String allGroups = null;
String rootGroups = null;
Document doc;
while ( ( doc = reader.readDocument() ) != null )
{
totalDocs++;
if ( doc.getField( "DESCRIPTOR" ) != null || doc.getField( ArtifactInfo.ALL_GROUPS ) != null
|| doc.getField( ArtifactInfo.ROOT_GROUPS ) != null )
{