The Maven task within Azure pipelines with coverage enabled manipulates the pom.xml
to add the JaCoCo plugin, irrespective of whether the plugin was already included. This is the link to the relevant code performing this change.
Although not an ideal solution, removing the JaCoCo plugin from the pom.xml will resolve the error. With this approach, any configuration for JaCoCo has to be relocated to the Maven task.