GoogleContainerTools / GoogleContainerTools/jib
Maven Jib build fails on Windows region settings set to Persian or Arabic
- Dominant language
- Java
- Stars
- 14.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
When the Windows region settings are set to Persian or Arabic, the .\mvnw compile jib:build command encounters an error.

The error message is as follows:
```
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build (default-cli) on project SheroozDrive: Execution default-cli of goal com.google.cloud.tools:jib-maven-plugin:3.3.1:build failed: An API incompatibility was encountered while executing com.google.cloud.tools:jib-maven-plugin:3.3.1:build: java.lang.ExceptionInInitializerError: null
...
[ERROR] : Illegal repetition near index 251
[ERROR] : ^(?:((?:[a-zA-Z\d]|(?:[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d]))(?:\.(?:[a-zA-Z\d]|(?:[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d])))*(?::\d+)?)/)?((?:[a-z\d]+(?:(?:[_.]|__|-+)[a-z\d]+)*/)*[a-z\d]+(?:(?:[_.]|__|-+)[a-z\d]+)*)(?::([\w][\w.-]{0,127}))?(?:@(sha256:[a-f0-9]{۶۴}))?$
```

As you can see in the attached image, Persian number characters are being used, which is causing this error.
Contributor guide
Assessment
This issue has not been assessed yet.