I am afraid this is not possible. By design all servlets have a common /plugins/servlet root. You can find more information in Servlet Module.
As a workaround, may be you could deploy your "plugin" as a standalone application and listen in the context path you want and then apply the changes to Confluence using Confluence API.
Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events