title: Maven-antrun No ant target defined - SKIPPED
body: <p>i am trying to copy a file in my maven multi-module project via antrun plugin. the file is in root of parent project:</p>
  
  <pre><code>&lt;plugin&gt;                                                           
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;                    
  &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;                   
  &lt;version&gt;1.7&lt;/version&gt;                                         
  &lt;inherited&gt;false&lt;/inherited&gt;                                   
  &lt;executions&gt;                                                   
      &lt;execution&gt;                                                
          &lt;inherited&gt;false&lt;/inherited&gt;                           
          &lt;id&gt;copy&lt;/id&gt;                                          
          &lt;goals&gt;                                                
              &lt;goal&gt;run&lt;/goal&gt;                                   
          &lt;/goals&gt;                                               
          &lt;configuration&gt;                                        
              &lt;target name="copy and rename file"&gt;               
                  &lt;copy file="${basedir}/portal-ext.properties" tofile="${liferay.auto.deploy.dir}/../portal-ext.properties" /&gt;
  
              &lt;/target&gt;                                          
          &lt;/configuration&gt;                                       
      &lt;/execution&gt;                                               
  &lt;/executions&gt;                                                  
  </code></pre>
  
  <p>                                 </p>
  
  <p>i run this via <code>mvn antrun:run</code> the problem is i get "No ant target defined - SKIPPED" on parent and on every module. i need it to run only on parent and thought <code>&lt;inherited&gt;false&lt;/inherited&gt;</code> would help but i doesn't. But why "No ant target defined"?</p>