@@ -0,0 +1,1813 @@
+package org.languager.maven;%0A%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugin.MojoExecutionException;%0Aimport org.apache.maven.plugin.MojoFailureException;%0Aimport org.apache.maven.project.MavenProject;%0Aimport org.springframework.context.support.FileSystemXmlApplicationContext;%0A%0Aimport java.io.*;%0A%0A/**%0A * @goal consoleInput%0A */%0Apublic class ConsoleInputMojo extends AbstractMojo %7B%0A    /**%0A     * @parameter expression=%22$%7Bproject%7D%22%0A     * @required%0A     * @readonly%0A     */%0A    protected MavenProject project;%0A%0A    /**%0A     * @parameter expression=%22$%7Bprompt%7D%22%0A     * @required%0A     */%0A    protected String prompt;%0A%0A    /**%0A     * @parameter expression=%22$%7BtargetProperty%7D%22%0A     * @required%0A     */%0A    protected String targetProperty;%0A%0A    /**%0A     * @parameter expression=%22$%7BdefaultValue%7D%22%0A     */%0A    protected String defaultValue;%0A%0A    /**%0A     * @parameter expression=%22$%7BshowIfTargetSet%7D%22%0A     */%0A    protected boolean showIfTargetSet;%0A%0A    public void execute() throws MojoExecutionException, MojoFailureException %7B%0A        if (showIfTargetSet %7C%7C project.getProperties().getProperty(targetProperty) == null) %7B%0A            System.out.print(prompt);%0A            if (defaultValue != null) %7B%0A                System.out.print(%22 (%22 + defaultValue + %22)%22);%0A            %7D%0A            System.out.print(%22: %22);%0A            try %7B%0A                String input = new BufferedReader(new InputStreamReader(System.in)).readLine();%0A                if ((input == null %7C%7C input.length() == 0) && defaultValue != null) %7B%0A                    input = defaultValue;%0A                %7D%0A                project.getProperties().setProperty(targetProperty, input);%0A            %7D catch (IOException e) %7B%0A                throw new MojoExecutionException(%22Problem reading input%22, e);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

move build plugins into parent project