Is it possible to run a Bash script from Maven?

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

    Solved. The problem is, executable is working in a different way for bash. This code is working. Write it in pom.xml

        
            exec-maven-plugin
        1.6.0
            org.codehaus.mojo
            
                
                    Renaming build artifacts
                    package
                    
                        exec
                    
                    
                        bash
                handleResultJars.sh
                    
                
            
        
    

提交回复
热议问题