Gradle to Maven plugin conversion

How can I write equivalent maven plugin for the following gradle plugin defined???


  • Plugin to copy system properties from gradle JVM to testing JVM
  • Code was copied from gradle discussion froum:
    class SystemPropertiesMappingPlugin implements Plugin{
    public void apply(Project project){
    project.tasks.withType(Test){ testTask ->
    testTask.ext.mappedSystemProperties = []
    mappedSystemProperties.each{ mappedPropertyKey ->
    def systemPropertyValue = System.getProperty(mappedPropertyKey)
    testTask.systemProperty(mappedPropertyKey, systemPropertyValue)

This is a Gradle forum. For any “how do I do X in maven” questions, please ask them on the appropriate maven forum