title: Spring Shell - command Prompt exits immediately, does not await user input
body: <p>I am attempting to build a Spring Shell application. 
  I am able to run my application successfully but it exits immediately @ startup &amp; does not await user input. It seems to not remain in the JLineShell promptLoop method.</p>
  
  <p>I am building a jar with a mainClassName = "org.springframework.shell.Bootstrap".</p>
  
  <p>My spring-shell-plugin.xml is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"&gt;
  
   &lt;context:component-scan base-package="com.zailab" /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>My Main class:</p>
  
  <pre><code>public class Main {
  
  public static void main(String[] args) throws IOException{
      Bootstrap.main(args);
  }
  
  }
  </code></pre>
  
  <p>My Command class:</p>
  
  <pre><code>@Component
  public class BuildCommand implements CommandMarker {
  
  @CliAvailabilityIndicator({"echo"})
    public boolean isCommandAvailable() {
      return true;
    }
  
  @CliCommand(value = "echo", help = "Echo a message")
   public String echo(
     @CliOption(key = { "", "msg" }, mandatory = true, help= "The message to echo") String msg) {
    return msg;
   }
  
  }
  </code></pre>