Maven release:perform without deploy and calling an external shell script

前端 未结 2 849
谎友^
谎友^ 2021-01-31 18:27

I am using the maven release plugin. Problem is simple: I don\'t want to do a deploy on release:perform. I actually want to execute a shell script that will do the deploy for me

2条回答
  •  一个人的身影
    2021-01-31 18:48

    I am using the maven release plugin. Problem is simple: I don't want to do a deploy on release:perform. I actually want to execute a shell script that will do the deploy for me.

    I must be missing something because when I read this, I don't see the point of the script... But let's just say I don't get it.

    Somehow disable the default "deploy" goal from release:perform

    According to the documentation of release:perform, you can use the optional goals parameter to specify:

    A space separated list of goals to execute on deployment. Default value is either deploy or deploy site-deploy, if the project has a / element.

    You could maybe use install instead of deploy.

    Somehow make release:perform call the exec:exec plugin to execute a shell script

    Bind it on install in a profile activated during release. Here is one way to do this:

    
      
      release
      
        
          
          performRelease
          true
        
      
      
        ...
      
    
    

    But honestly, there is something weird with your request. Maybe giving more details would help.

提交回复
热议问题