private void overrideDeploymentProperties(T overrider, Class overriderClass) {
        if (!overriderClass.getSimpleName().equals(ArtifactoryMaven3NativeConfigurator.class.getSimpleName())) {
            try {
                Field deploymentPropertiesField = overriderClass.getDeclaredField("deploymentProperties");
                deploymentPropertiesField.setAccessible(true);
                Object deploymentProperties = deploymentPropertiesField.get(overrider);

                if (deploymentProperties == null) {
                    Field matrixParamsField = overriderClass.getDeclaredField("matrixParams");
                    matrixParamsField.setAccessible(true);
                    Object matrixParams = matrixParamsField.get(overrider);
                    if (matrixParams != null) {
                        deploymentPropertiesField.set(overrider, matrixParams);
                    }
                }
            } catch (NoSuchFieldException | IllegalAccessException e) {
                converterErrors.add(getConversionErrorMessage(overrider, e));
            }
        }
    }
private void overrideDeploymentProperties ( T overrider , Class overriderClass ) { if ( ! overriderClass . getSimpleName ( ) . equals ( ArtifactoryMaven3NativeConfigurator . class . getSimpleName ( ) ) ) { try { Field deploymentPropertiesField = overriderClass . getDeclaredField ( "deploymentProperties" ) ; deploymentPropertiesField . setAccessible ( true ) ; Object deploymentProperties = deploymentPropertiesField . get ( overrider ) ; if ( deploymentProperties == null ) { Field matrixParamsField = overriderClass . getDeclaredField ( "matrixParams" ) ; matrixParamsField . setAccessible ( true ) ; Object matrixParams = matrixParamsField . get ( overrider ) ; if ( matrixParams != null ) { deploymentPropertiesField . set ( overrider , matrixParams ) ; } } } catch ( NoSuchFieldException | IllegalAccessException e ) { converterErrors . add ( getConversionErrorMessage ( overrider , e ) ) ; } } }
Convert the String matrixParams parameter to String deploymentProperties
This convertion comes after a name change (matrixParams -> deploymentProperties)