src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java
private void generateCorrectRJavaForAarDependencies( ResourceClassGenerator resourceGenerator )
            throws MojoExecutionException
    {
        // Generate corrected R.java for AAR dependencies.
        final Set<Artifact> aarLibraries = getTransitiveDependencyArtifacts( AAR );
        if ( !aarLibraries.isEmpty() )
        {
            // Generate R.java for each AAR based on R.txt
            getLog().debug( "Generating R file for AAR dependencies" );
            resourceGenerator.generateLibraryRs( aarLibraries );
        }
    }
private void generateCorrectRJavaForAarDependencies( ResourceClassGenerator resourceGenerator )
            throws MojoExecutionException
    {
        // Generate corrected R.java for AAR dependencies.
        final Set<Artifact> aarLibraries = getTransitiveDependencyArtifacts( AAR );
        if ( !aarLibraries.isEmpty() )
        {
            // Generate R.java for each AAR based on R.txt
            getLog().debug( "Generating R file for AAR dependencies" );
            resourceGenerator.generateLibraryRs( aarLibraries );
        }
    }
private void generateCorrectRJavaForAarDependencies ( ResourceClassGenerator resourceGenerator ) throws MojoExecutionException { // Generate corrected R.java for AAR dependencies. final Set < Artifact > aarLibraries = getTransitiveDependencyArtifacts ( AAR ) ; if ( ! aarLibraries . isEmpty ( ) ) { // Generate R.java for each AAR based on R.txt getLog ( ) . debug ( "Generating R file for AAR dependencies" ) ; resourceGenerator . generateLibraryRs ( aarLibraries ) ; } }
Generate correct R.java for aar dependencies of a current project

@throws MojoExecutionException if it could not generate the R java for one of the libraries.
Generate correct R . java for aar dependencies of a current project