2010-04-12 74 views

回答

0

總有可能在maven中運行ant。 Ant在許多方面比Maven強大得多,但Maven擅長依賴管理和易於部署。所以,如果你需要螞蟻行家裏面的力量,使用maven antrun插件:

http://maven.apache.org/plugins/maven-antrun-plugin/usage.html摘自:

<build> 
<plugins> 
    <plugin> 
    <artifactId>maven-antrun-plugin</artifactId> 
    <executions> 
     <execution> 
     <phase> <!-- a lifecycle phase --> </phase> 
     <configuration> 
      <tasks> 

      <!-- 
       Place any Ant task here. You can add anything 
       you can add between <target> and </target> in a 
       build.xml. 
      --> 

      </tasks> 
     </configuration> 
     <goals> 
      <goal>run</goal> 
     </goals> 
     </execution> 
    </executions> 
    </plugin> 
</plugins> 

肖恩