/*
 * Copyright 2012-2014 Thomas Bouffard (redfish4ktc)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.ktc.soapui.maven.extension;

import com.eviware.soapui.tools.SoapUIMockServiceRunner;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.ktc.soapui.maven.extension.impl.runner.SoapUIProExtensionMockServiceRunner;
import org.ktc.soapui.maven.extension.impl.runner.wrapper.SoapUIMockRunnerWrapper;

public class MockServiceMojo extends AbstractSoapuiRunnerMojo {
    // already in smartbear implementation
    private String mockService;
    private String path;
    private String port;
    private boolean noBlock;

    // custom maven-soapui-extension-plugin
    private boolean coverageReport;

    @Override
    protected void performRunnerExecute() throws MojoExecutionException, MojoFailureException {
        SoapUIMockRunnerWrapper runnerWrapper = SoapUIMockRunnerWrapper.newSoapUIMockServiceRunner(runnerType);

        SoapUIMockServiceRunner runner = runnerWrapper.getRunner();
        configureWithSharedParameters(runner);

        runner.setBlock(!noBlock);
        if (mockService != null) {
            runner.setMockService(mockService);
        }
        if (path != null) {
            runner.setPath(path);
        }
        if (port != null) {
            runner.setPort(port);
        }
        runner.setSaveAfterRun(saveAfterRun);

        if (runnerWrapper.isProRunner()) {
            SoapUIProExtensionMockServiceRunner proRunner = (SoapUIProExtensionMockServiceRunner) runner;
            proRunner.activateCoverageReport(coverageReport);
            
            getLog().warn("setting output foler: "  + outputFolder);
            proRunner.setOutputFolder(outputFolder);
            getLog().warn("registered output foler: "  + proRunner.getOutputFolder() + " / from regular runner: " + runner.getOutputFolder());
        }

        try {
            runner.run();
        } catch (Exception e) {
            getLog().debug(e);
            throw new MojoFailureException("SoapUI has errors: " + e.getMessage(), e);
        }
    }
}

@@ -2177,271 +2177,46 @@
     
-%0A            getLog().warn(%22setting output foler: %22  + outputFolder);%0A            proRunner.setOutputFolder(outputFolder);%0A            getLog().warn(%22registered output foler: %22  + proRunner.getOutputFolder() + %22 / from regular runner: %22 + runner.getOutputFolder()
+proRunner.setOutputFolder(outputFolder
 );%0A 

Remove false warning logs