I recognise that I may be over-reaching with my wish list, but any and all constructive suggestions are welcomed.
I have a project that uses liquibase to manage the database structure. I store the connection credentials in profiles in my settings.xml file and have an enforcer rule to ensure that one, and only one, of the develop, sandbox, and production profiles is active when I run maven. I stash the liquibase changes in a sub-module of the project and only run the plugin goals when needed. I would like to have the build/run plugin process prompt me to confirm that I really mean to do what I’m trying to do if I run the liquibase plugin with the production profile active. So: * clean, install, validate, test etc. under normal circumstances, run with one of the profiles active and don’t warn. * run liquibase:update with the develop or sandbox profiles active - again, don’t warn * run liquibase:update with the production profile active - I want maven to ask me to confirm that I really mean to do that. The liquibase plugin has a “promptOnNonLocalDatabase” option, but I can’t use that because the connections to the database are tunnelled so they all appear as local as far as the plugin process is concerned. I’m happy enough to hack together code to do this if there is no current solution to the problem, but I’m not sure how I would go about tying something like an enforcer rule to just the liquibase plugin executions. Does anyone think this is possible? Later, Andy -------- Yada, yada, yada... Disclaimer: This e-mail and any attachments are confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you have received it in error, please destroy all copies and inform the sender. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.