src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java
protected void extractSourceDependencies() throws MojoExecutionException
    {
        for ( Artifact artifact : getDirectDependencyArtifacts() )
        {
            String type = artifact.getType();
            if ( type.equals( APKSOURCES ) )
            {
                getLog().debug( "Detected apksources dependency " + artifact + " with file " + artifact.getFile()
                        + ". Will resolve and extract..." );

                final File apksourcesFile = resolveArtifactToFile( artifact );
                getLog().debug( "Extracting " + apksourcesFile + "..." );
                extractApksources( apksourcesFile );
            }
        }

        if ( extractedDependenciesJavaResources.exists() )
        {
            projectHelper.addResource( project, extractedDependenciesJavaResources.getAbsolutePath(), null, null );
            project.addCompileSourceRoot( extractedDependenciesJavaSources.getAbsolutePath() );
        }
    }
protected void extractSourceDependencies() throws MojoExecutionException
    {
        for ( Artifact artifact : getDirectDependencyArtifacts() )
        {
            String type = artifact.getType();
            if ( type.equals( APKSOURCES ) )
            {
                getLog().debug( "Detected apksources dependency " + artifact + " with file " + artifact.getFile()
                        + ". Will resolve and extract..." );

                final File apksourcesFile = resolveArtifactToFile( artifact );
                getLog().debug( "Extracting " + apksourcesFile + "..." );
                extractApksources( apksourcesFile );
            }
        }

        if ( extractedDependenciesJavaResources.exists() )
        {
            projectHelper.addResource( project, extractedDependenciesJavaResources.getAbsolutePath(), null, null );
            project.addCompileSourceRoot( extractedDependenciesJavaSources.getAbsolutePath() );
        }
    }
protected void extractSourceDependencies ( ) throws MojoExecutionException { for ( Artifact artifact : getDirectDependencyArtifacts ( ) ) { String type = artifact . getType ( ) ; if ( type . equals ( APKSOURCES ) ) { getLog ( ) . debug ( "Detected apksources dependency " + artifact + " with file " + artifact . getFile ( ) + ". Will resolve and extract..." ) ; final File apksourcesFile = resolveArtifactToFile ( artifact ) ; getLog ( ) . debug ( "Extracting " + apksourcesFile + "..." ) ; extractApksources ( apksourcesFile ) ; } } if ( extractedDependenciesJavaResources . exists ( ) ) { projectHelper . addResource ( project , extractedDependenciesJavaResources . getAbsolutePath ( ) , null , null ) ; project . addCompileSourceRoot ( extractedDependenciesJavaSources . getAbsolutePath ( ) ) ; } }
Extract the source dependencies.

@throws MojoExecutionException if it fails.
Extract the source dependencies .