Apigee Maven Deployment Plugin: Override option

ashwithds123
Participant IV

Hi Team,

I am currently working on Apigee Maven Deployment Plugin in order to setup CICD pipeline. There are multiple options provide by the plugin like validate, update, override etc.

My concern: Is it enough to pass override in option parameter, so that it will take care of validation behind the scenes

mvn install -Ptest -Dusername=$ae_username -Dpassword=$ae_password -Doptions=override

or else, do I need to pass validate and override in options parameter

mvn install -Ptest -Dusername=$ae_username -Dpassword=$ae_password -Doptions=validate,override

Here is the [link] I am referring.

8780-1.png

Regards,

Ashwith

0 4 441
4 REPLIES 4

I believe these are two separate, independent flags that are then used with the relevant Management APIs

Validate occurs during import of your bundle, see

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/apis-0

Override occurs during the deployment, see

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_nam...

Hi @dane knezic,

I have tried working on passing validate and override individually. I see both the operations are similar, please find the attached image containing detailed description.

mvn install -Ptest-Dusername=$ae_username -Dpassword=$ae_password -Doptions=override

and

mvn install -Ptest-Dusername=$ae_username -Dpassword=$ae_password -Doptions=validate

However, validate option is default.

8783-image-3.png

No refers to it is not imported/deployed

Yes refers to it is imported/deployed

Regards,

Ashwith

@ash gun - just use override

Validate is called as well (behind the scenes)

Thanks, Sai for giving clarity