Is it possible to run a Bash script from Maven?

后端 未结 7 1760
無奈伤痛
無奈伤痛 2021-02-05 01:53

For creating configuration of my application I need to run bash script. Is it possible to integrate execution of Bash scripts in Maven, maybe there are some plugins?

7条回答
  •  天涯浪人
    2021-02-05 02:47

    Would look more like:

    
        org.apache.maven.plugins
        maven-antrun-plugin
        1.8
        
            
                generateSources
                generate-sources
                
                    
                        
                            
                            
                        
                        
                            
                            
                        
                    
                
                
                    run
                
            
        
    
    

    With myFirst.sh:

    echo "call to myFirst.sh, message ${1}"
    

提交回复
热议问题