Maven antrun with sequential ant-contrib fails to run

前端 未结 4 1743
粉色の甜心
粉色の甜心 2021-01-12 10:09

We have a special routine to explode files in a subfolder into extensions, which will be copied and jared into single extension files. For this special approach I wanted to

4条回答
  •  失恋的感觉
    2021-01-12 10:37

    I too wasted several hours on this one, because antcontrib for task could not be found.

    Finally, I found out that for task in not defined in antcontrib.properties, but in antlib.xml!

    antcontrib.properties is a pre ant 1.6 way of doing things – the modern way is to use antlib.xml.

    So, this is a maven 3.5, ant 1.8, working example:

    
        maven-antrun-plugin
        
            
                ant-contrib
                ant-contrib
                1.0b3
                
                    
                        ant
                        ant
                    
                
            
        
    
        
            deploy_to_distrib_folder
            package
            
    
                
                    
    
                    
                        
                        
                            
                            
                                
                            
                            
                        
                    
    
                    
                        
                            
                        
                        
                            
                        
                    
    
                
            
            
                run
            
        
    
    

    Hope this helps!

提交回复
热议问题