private void executeBuildPlugins() {
        try {
            Enumeration<URL> dmpPlugins = Thread.currentThread().getContextClassLoader().getResources(DMP_PLUGIN_DESCRIPTOR);
            while (dmpPlugins.hasMoreElements()) {

                URL dmpPlugin = dmpPlugins.nextElement();
                File outputDir = getAndEnsureOutputDirectory();
                processDmpPluginDescription(dmpPlugin, outputDir);
            }
        } catch (IOException e) {
            log.error("Cannot load dmp-plugins from %s", DMP_PLUGIN_DESCRIPTOR);
        }
    }
Helper method to process an ImageConfiguration.

@param hub ServiceHub
@param aImageConfig ImageConfiguration that would be forwarded to build and tag
@throws DockerAccessException
@throws MojoExecutionException
src/main/java/io/fabric8/maven/docker/BuildMojo.java