Extending existing jar task with support for enhancing(signing) the generated artifact

Because I thought it is not a good idea to create a separate signed artifact. The goal would be that the primary artifact gets signed, however I was wondering whether/how this could be done in another task - to accomplish this, the plugin would have to also remove the already declared published artifact and replace it with a new one (or probably reconfigure the existing?) - do you think this is possible?

Regards,

Detelin