Hi,
In our CI, our platform start prohibit anonymous access to our central maven repository.
Since restriction was applied I start getting the following error:
[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project ********: Error extracting protoc for version 3.19.0: Unsupported platform: protoc-3.19.0-osx-x86_64.exe ->
So far, we came up with the following guess regarding the root cause:
it is caused by hardcoded logic in plugin protoc-jar-maven-plugin. It will read the ${user.home}/.m2/settings.xml
https://github.com/os72/protoc-jar/blob/master/src/main/java/com/github/os72/protocjar/MavenUtil.java#L60
And it won't use user name/password when access artifact:https://github.com/os72/protoc-jar/blob/master/src/main/java/com/github/os72/protocjar/Protoc.java#L329-L337
So even you use customized settings.xml won't resolve this issue.
Any advise you might have?
Thanks,
Lior
Hi,
In our CI, our platform start prohibit anonymous access to our central maven repository.
Since restriction was applied I start getting the following error:
[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project ********: Error extracting protoc for version 3.19.0: Unsupported platform: protoc-3.19.0-osx-x86_64.exe ->
So far, we came up with the following guess regarding the root cause:
it is caused by hardcoded logic in plugin protoc-jar-maven-plugin. It will read the ${user.home}/.m2/settings.xml
https://github.com/os72/protoc-jar/blob/master/src/main/java/com/github/os72/protocjar/MavenUtil.java#L60
And it won't use user name/password when access artifact:https://github.com/os72/protoc-jar/blob/master/src/main/java/com/github/os72/protocjar/Protoc.java#L329-L337
So even you use customized settings.xml won't resolve this issue.
Any advise you might have?
Thanks,
Lior