public void processFile ( File f ) throws MojoExecutionException { try { RepositoryModel repositoryModel = new RepositoryModel ( f ) ; ArrayList < HashMap < String , Object > > aliases = readXMLBean ( repositoryModel , f ) ; // reset old references if ( ! keepOriginalAliasLib ) { aliases . clear ( ) ; } // adding the JAR dependencies for ( Dependency dependency : jarDependencies ) { addAlias ( aliases , getJarAlias ( dependency , false ) ) ; } writeXMLBean ( repositoryModel , f , aliases ) ; } catch ( Exception e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } }
This method adds the JAR aliases to a . aliaslib file