Using antcontrib task via maven-antrun-plugin

前端 未结 4 1940
半阙折子戏
半阙折子戏 2020-12-03 21:06

My maven java project uses the maven-antrun-plugin to execute a deploy.xml ant script that deploys my app. The deploy.xml uses the task and this seem

4条回答
  •  隐瞒了意图╮
    2020-12-03 21:46

    I think it is not a very good idea to add ant to compile classpath in order to run maven plugin.

    I use Maven 3.0.4 and it worked by specifying namespace for ant-contrib tags, for example:

    
      
        
        
          
            Letter @{letter}
          
        
      
    
    

    My maven-antrun-plugin dependencies:

    
      
        ant-contrib
        ant-contrib
        1.0b3
        
          
            ant
            ant
          
        
      
      
        org.apache.ant
        ant-nodeps
        1.8.1
      
    
    

提交回复
热议问题