void createDirs() {
        for (String workDir : new String[] { "build", "work", "tmp" }) {
            Path dir = getBuildPath(workDir);
            try {
                Files.createDirectories(dir);
            } catch (IOException e) {
                throw new IllegalArgumentException("Cannot create directory " + dir);
            }
        }
    }
Constructor building up the output directories

@param imageName image name for the image to build
@param params mojo params holding base and global output dir
src/main/java/io/fabric8/maven/docker/assembly/BuildDirs.java