Source:
<code>public void extractAarLib( Artifact aarArtifact ) throws MojoExecutionException { final File aarFile = artifactResolverHelper.resolveArtifactToFile( aarArtifact ); if ( aarFile.isDirectory() ) { log.warn( "The aar artifact points to '" + aarFile + "' which is a directory; skipping unpacking it." ); return; } final UnArchiver unArchiver = new ZipUnArchiver( aarFile ) { @Override protected Logger getLogger() { return new ConsoleLogger( log.getThreshold(), "dependencies-unarchiver" ); } }; final File aarDirectory = getUnpackedLibFolder( aarArtifact ); aarDirectory.mkdirs(); unArchiver.setDestDirectory( aarDirectory ); log.debug( "Extracting AAR to " + aarDirectory ); try { unArchiver.extract(); } catch ( ArchiverException e ) { throw new MojoExecutionException( "ArchiverException while extracting " + aarDirectory.getAbsolutePath() + ". Message: " + e.getLocalizedMessage(), e ); } final File jniFolder = new File( aarDirectory, AarMojo.NATIVE_LIBRARIES_FOLDER ); <START> final File libsFolder = new File( aarDirectory, "libs" ); <END> if ( !jniFolder.exists() && libsFolder.isDirectory() && libsFolder.exists() ) { String[] natives = libsFolder.list( new PatternFilenameFilter( "^.*(?<!(?i)\\.jar)$" ) ); if ( natives.length > 0 ) { log.debug( "Moving AAR native libraries from libs to jni folder" ); for ( String nativeLibPath : natives ) { try { FileUtils.moveToDirectory( new File( libsFolder, nativeLibPath ), jniFolder, true ); } catch ( IOException e ) { throw new MojoExecutionException( "Could not move native libraries from " + libsFolder, e ); } } } } }</code><technical_language>clean this consistent (ie: constants for both)</technical_language>

Target:
public void extractAarLib( Artifact aarArtifact ) throws MojoExecutionException { final File aarFile = artifactResolverHelper.resolveArtifactToFile( aarArtifact ); if ( aarFile.isDirectory() ) { log.warn( "The aar artifact points to '" + aarFile + "' which is a directory; skipping unpacking it." ); return; } final UnArchiver unArchiver = new ZipUnArchiver( aarFile ) { @Override protected Logger getLogger() { return new ConsoleLogger( log.getThreshold(), "dependencies-unarchiver" ); } }; final File aarDirectory = getUnpackedLibFolder( aarArtifact ); aarDirectory.mkdirs(); unArchiver.setDestDirectory( aarDirectory ); log.debug( "Extracting AAR to " + aarDirectory ); try { unArchiver.extract(); } catch ( ArchiverException e ) { throw new MojoExecutionException( "ArchiverException while extracting " + aarDirectory.getAbsolutePath() + ". Message: " + e.getLocalizedMessage(), e ); } final File jniFolder = new File( aarDirectory, AarMojo.NATIVE_LIBRARIES_FOLDER ); final File libsFolder = new File( aarDirectory, ApklibMojo.NATIVE_LIBRARIES_FOLDER ); if ( !jniFolder.exists() && libsFolder.isDirectory() && libsFolder.exists() ) { String[] natives = libsFolder.list( new PatternFilenameFilter( "^.*(?<!(?i)\\.jar)$" ) ); if ( natives.length > 0 ) { log.debug( "Moving AAR native libraries from libs to jni folder" ); for ( String nativeLibPath : natives ) { try { FileUtils.moveToDirectory( new File( libsFolder, nativeLibPath ), jniFolder, true ); } catch ( IOException e ) { throw new MojoExecutionException( "Could not move native libraries from " + libsFolder, e ); } } } } }