title: maven release plugin : Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
body: <p>I am trying to use maven release plugin to make a release of my multi-module project. when i execute </p>
  
  <p>mvn release:prepare</p>
  
  <p>i get following error</p>
  
  <pre><code>ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project sample-packt-serverside: Execution defau
  t-cli of goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare failed: String index out of range: -1 -&gt; [Help 1]
  </code></pre>
  
  <p>then i tried to execute </p>
  
  <p>mvn -e -X release:prepare</p>
  
  <p>then i see the following output on the console</p>
  
  <p>could anybody help me to resolve this isssue. </p>
  
  <p><img src="https://i.stack.imgur.com/zNaKn.png" alt="enter image description here"></p>