Maven: downloading files from url

后端 未结 6 1987
生来不讨喜
生来不讨喜 2020-12-02 14:08

Can I download some files from http while maven lifecycle? any plugin?

6条回答
  •  生来不讨喜
    2020-12-02 14:40

    If available, wget can be used directly with exec-maven-plugin:

    
        org.codehaus.mojo
        exec-maven-plugin
        1.2.1
        
            
                
                    exec
                
            
        
        
            wget
            
                http://example.com/file.zip
                destination.zip
            
        
    
    

提交回复
热议问题