title: Unable to run eclipse goal using mvn-ant-task
body: <p>I am trying to run <code>eclipse:eclipse</code> on a maven project from an ant build file. </p>
  
  <p>But its failing with error: </p>
  
  <pre><code>    Eclipsify:
       [echo] Converting Maven Project to Eclipse Project
  [artifact:mvn] -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.org.apache.tools.ant.ExitExceptio
  n: Permission ("java.lang.RuntimePermission" "exitVM") was not granted.
  [artifact:mvn]  at org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:194)
  [artifact:mvn]  at java.lang.Runtime.exit(Runtime.java:107)
  [artifact:mvn]  at java.lang.System.exit(System.java:962)
  </code></pre>
  
  <p>Below are the configurations in my build.xml</p>
  
  <pre><code>&lt;project name="ConnectAll"
       default="default"
       xmlns:artifact="antlib:org.apache.maven.artifact.ant"&gt;
  </code></pre>
  
  <p>And in the ant target I have added eclipse goal as given below</p>
  
  <pre><code>&lt;artifact:mvn pom="${pom}" mavenhome="${MVN_HOME}"&gt;
              &lt;arg value="eclipse:eclipse" /&gt;
              &lt;arg value="-Dmaven.multiModuleProjectDirectory=true"/&gt;
  &lt;/artifact:mvn&gt;
  </code></pre>
  
  <p>Also i have verified that the <code>${MVN_HOME}</code> property and the actual <code>M2_HOME</code> are same. </p>
  
  <p>Can someone help me figure out what am I missing here.</p>