@Override
    protected void execute(Speedment speedment) throws MojoExecutionException, MojoFailureException {
        getLog().info("Saving default configuration from database to '" + configLocation().toAbsolutePath() + "'.");

        final ConfigFileHelper helper = speedment.getOrThrow(ConfigFileHelper.class);

        ProjectProperty project = createProject();

        helper.saveProjectToCurrentlyOpenFile(project);

        try {
            helper.setCurrentlyOpenFile(configLocation().toFile());
        } catch (final Exception ex) {
            final String err = "An error occurred while reloading.";
            getLog().error(err);
            throw new MojoExecutionException(err, ex);
        }
    }
A maven goal (re)creates the configuration file with just the provided initialisation parameters.

@author Mark Schrijver
@since 3.0.17
build-parent/maven-plugin/src/main/java/com/speedment/maven/abstractmojo/AbstractInitMojo.java