private void setRepositoryMapFile ( ) throws MojoExecutionException { if ( this . customRepositoryMap != null && ! this . customRepositoryMap . isEmpty ( ) ) { File repositoryMap = getRepositoryMapFile ( this . customRepositoryMap ) ; if ( repositoryMap . exists ( ) ) { checkRepositoryMapIsValid ( repositoryMap ) ; try { this . xmlRepositoryMap = repositoryMap . toURI ( ) . toURL ( ) . openStream ( ) ; } catch ( IOException ioe ) { throw new MojoExecutionException ( ioe . getLocalizedMessage ( ) ) ; } } else { throw new MojoExecutionException ( "Repository map '" + repositoryMap . getAbsolutePath ( ) + "' does not exist" ) ; } } if ( this . xmlRepositoryMap == null ) { this . xmlRepositoryMap = this . getClass ( ) . getResourceAsStream ( "/RepositoryMap.xml" ) ; } }
Set the RepositoryMap used to get file information . If the supplied map is invalid it will default to the pre - packaged one here .