Disable compile-theme goal only when debug

Hi,
what about using maven profiles? Configure the plugin in build section without define and add a a profile (eg production) that reconfigures the plugin specifying the execution of compile-theme goal

HTH
Marco