Is it possible to run a Bash script from Maven?

后端 未结 7 1749
無奈伤痛
無奈伤痛 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:35

    Could the Bash Maven Plugin help you? (Disclaimer: I initiated it, so please send me feedback)

    
        
            
                
                com.atlassian.maven.plugins
                bash-maven-plugin
                1.0-SNAPSHOT
                
                    
                        test
                        integration-test
                        
                            run
                        
                    
                
                
                    
                
            
        
    
    

    You will need to install this maven plugin in your own Maven repo.

    Like Konstantin: When you execute a shell script, you're not portable anymore.

提交回复
热议问题