title: How do I prompt for user input in Maven?
body: <p>I'm writing a Maven plugin which I'd like to prompt for a simple user input and decide whether to halt the plugin's execution.</p>
  
  <p>I'd like to do something like this:</p>
  
  <pre><code>$&gt; mvn myplugin:run
  
  [MAVEN] would you like to continue? [default value: y] _
  </code></pre>
  
  <p>I've tried using maven-antrun-plugin as described <a href="https://stackoverflow.com/questions/11340894/is-there-a-way-to-capture-user-input-in-maven-and-assign-it-to-a-maven-propertty">here</a>, but in this case Maven gets user input when I build my plugin. Instead, I'd like to retrieve input when user is running my plugin from within some other app that has declared my plugin (confusing?)</p>