plugins/org.wso2.developerstudio.eclipse.docker.distribution/src/org/wso2/developerstudio/eclipse/docker/distribution/action/DockerRunMavenAction.java
/**
     * Execute docker build and push maven jobs.
     * 
     * @param project container project
     * @param dependencyProjectNames CApp project name list in POM file
     * @param configuration auth connection data for docker push
     */
Execute docker build and push maven jobs.

@param project container project
@param dependencyProjectNames CApp project name list in POM file
@param configuration auth connection data for docker push
Execute docker build and push maven jobs . @param project container project @param dependencyProjectNames CApp project name list in POM file @param configuration auth connection data for docker push
private void executeDockerBuildProcess(IProject project, List<String> dependencyProjectNames,
            DockerHubAuth configuration) {
        String m2Directory = FileUtils.getUserDirectory().getPath() + File.separator + ".m2" + File.separator
                + "repository";
        try {
            DockerBuildActionUtil.exportCarbonAppsToTargetFolder(m2Directory, dependencyProjectNames);
            String targetRepository = DockerBuildActionUtil.readDockerImageDetailsFromPomPlugin(pomFile);
            String[] reposirotyTags = targetRepository.split(DockerProjectConstants.REPOSITORY_SEPERATOR);
            if (reposirotyTags.length == 3) {
                targetRepository = reposirotyTags[1] + DockerProjectConstants.REPOSITORY_SEPERATOR + reposirotyTags[2];
            }
            if (configuration != null && !configuration.isDockerRegistry()) {
                targetRepository = configuration.getRemoteRegistryURL() + DockerProjectConstants.REPOSITORY_SEPERATOR + targetRepository;
            }
            DockerBuildActionUtil.changeDockerImageDataInPOMPlugin(pomFile, targetRepository);
			DockerBuildActionUtil.runDockerBuildWithMavenProfile(project, DockerBuildActionUtil.MAVEN_BUILD_GOAL,
					configuration);
        } catch (CoreException e) {
            log.error("CoreException in while executing the docker build process", e);
        }
    }
private void executeDockerBuildProcess ( IProject project , List < String > dependencyProjectNames , DockerHubAuth configuration ) { String m2Directory = FileUtils . getUserDirectory ( ) . getPath ( ) + File . separator + ".m2" + File . separator + "repository" ; try { DockerBuildActionUtil . exportCarbonAppsToTargetFolder ( m2Directory , dependencyProjectNames ) ; String targetRepository = DockerBuildActionUtil . readDockerImageDetailsFromPomPlugin ( pomFile ) ; String [ ] reposirotyTags = targetRepository . split ( DockerProjectConstants . REPOSITORY_SEPERATOR ) ; if ( reposirotyTags . length == 3 ) { targetRepository = reposirotyTags [ 1 ] + DockerProjectConstants . REPOSITORY_SEPERATOR + reposirotyTags [ 2 ] ; } if ( configuration != null && ! configuration . isDockerRegistry ( ) ) { targetRepository = configuration . getRemoteRegistryURL ( ) + DockerProjectConstants . REPOSITORY_SEPERATOR + targetRepository ; } DockerBuildActionUtil . changeDockerImageDataInPOMPlugin ( pomFile , targetRepository ) ; DockerBuildActionUtil . runDockerBuildWithMavenProfile ( project , DockerBuildActionUtil . MAVEN_BUILD_GOAL , configuration ) ; } catch ( CoreException e ) { log . error ( "CoreException in while executing the docker build process" , e ) ; } }
Execute docker build and push maven jobs.
Execute docker build and push maven jobs .
// check docker registry URL has changed, if yes append the private remote url to the target repository