public void extractDockerTarArchive(File archiveFile, File destinationDirectory, UntarCompressionMethod method) throws MojoExecutionException {
        try {
            TarUnArchiver unArchiver = (TarUnArchiver) archiverManager.getUnArchiver(TAR_ARCHIVER_TYPE);
            unArchiver.setCompression(method);
            unArchiver.setSourceFile(archiveFile);
            unArchiver.setDestDirectory(destinationDirectory);
            unArchiver.extract();
        } catch (NoSuchArchiverException e) {
            throw new MojoExecutionException("No archiver found for file " + archiveFile, e);
        } catch (ArchiverException e) {
            throw new MojoExecutionException("Cannot extract archive " + archiveFile, e);
        }
    }
Extract a docker tar archive into the given directory.

@param archiveFile a tar archive to extract
@param destinationDirectory directory where to place extracted content
@throws MojoExecutionException if an error occurs during extracting.
src/main/java/io/fabric8/maven/docker/assembly/DockerAssemblyManager.java