Skip to content

Hardcoded logic might cause maven issue (protoc-3.19.0) #133

@liorgreenblat

Description

@liorgreenblat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions