@@ -0,0 +1,1078 @@
+package stni.maven.tools;%0A%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugin.MojoExecutionException;%0Aimport org.apache.maven.plugin.MojoFailureException;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0A%0A/**%0A * @goal confirmation%0A */%0Apublic class ConfirmationMojo extends AbstractMojo %7B%0A    /**%0A     * @parameter expression=%22$%7Bprompt%7D%22%0A     * @required%0A     */%0A    private String prompt;%0A%0A    public void execute() throws MojoExecutionException, MojoFailureException %7B%0A        System.out.print(prompt);%0A        String in = readInput();%0A        if (!in.equalsIgnoreCase(%22y%22) && !in.equalsIgnoreCase(%22yes%22)) %7B%0A            throw new MojoExecutionException(%22User did not confirm question '%22 + prompt + %22'%22);%0A        %7D%0A    %7D%0A%0A    private String readInput() throws MojoExecutionException %7B%0A        try %7B%0A            return new BufferedReader(new InputStreamReader(System.in)).readLine();%0A        %7D catch (IOException e) %7B%0A            throw new MojoExecutionException(%22Problem reading input%22, e);%0A        %7D%0A    %7D%0A%7D

add ConfirmationMojo