### Environment

* Dubbo version: 3.2
* Operating System version: mac 10.15
* Java version: JDK8  or JDK 15  or JDK 17

### Steps to reproduce this issue

1. mvn clean install
2. show build error
dubbo-cluster build fail

### Expected Behavior

<!-- What do you expect from the above steps？-->

### Actual Behavior

<!-- What actually happens? -->

If there is an exception, please attach the exception trace:
error log 
```
Please refer to /Users/lucas/github/dubbo/dubbo-cluster/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.�
```
�

}
            String[] ivArr = interfaceAndVersion.split(GROUP_CHAR_SEPARATOR);
            return ivArr[0];
        }
    }
    public static String getGroup(Invocation invocation) {
        if (invocation.getServiceModel() != null && invocation.getServiceModel().getServiceMetadata() != null) {
            return invocation.getServiceModel().getServiceMetadata().getGroup();
        } else {
            String serviceUniqueName = invocation.getTargetServiceUniqueName();
            String group = null;
            String[] arr = serviceUniqueName.split(PATH_SEPARATOR);
            if (arr.length == 2) {
                group = arr[0];
            }
            return group;
        }
    }
    public static String getVersion(Invocation invocation) {
        if (invocation.getServiceModel() != null && invocation.getServiceModel().getServiceMetadata() != null) {
            return invocation.getServiceModel().getServiceMetadata().getVersion();
        } else {
            String interfaceAndVersion;
            String[] arr = invocation.getTargetServiceUniqueName().split(PATH_SEPARATOR);
            if (arr.length == 2) {
                interfaceAndVersion = arr[1];
            } else {
                interfaceAndVersion = arr[0];
            }
            String[] ivArr = interfaceAndVersion.split(GROUP_CHAR_SEPARATOR);