In any case, you may need to move the common logic to another maven project so that you can efficiently share changes between both plugin.