It is not impossible to do this but you have to be really carefull because quite some stuff can break and will cause the plugin to fail. Also that version is EOL, why not upgrade to 5.11+ and save yourself some hassle?
But if you really want to do it here is some example
In your pom you will find dependencies on the bitbucket api for example. Like below:
<version>5.11.1</version> <-- might be lower than 5.11.1
update the version of these to the version you would be interested in, let’s say 4.10.2. This would update the dependencies to the correct version. Now comes the tricky part, it still needs to compile because the plugin might use api’s that aren’t supported in older versions. The best way to find this out is by doing a clean install via
mvn clean install
At this point the code will compile or not and it will be a bit puzzling from here on.
There might be more dependencies you will need to downgrade but this is just an example to get you started.