protoc-jar-maven-plugin
protoc-jar-maven-plugin copied to clipboard
Downloading protoc doesn't respect settings chosen via mvn -s
running mvn -s local-settings.xml install fails to download protoc
where I don't have a ~/.m2/settings.xml and am running on an air-gapped network.
short term I can probably work around this by copying my local-settings.xml to ~/.m2/settings.xml just before every mvn command. Is there a better work around?
Questions/feature requests:
- Why does this need to look at user settings at all (and presumably have to re-implement all the mirror logic and caching)?
- Shouldn't it just ask maven to download the protoc?
- If not could docs be added to something related to http://os72.github.io/protoc-jar-maven-plugin/run-mojo.html#pluginArtifact ?
- Could logs specify that it failed to download metadata rather than suggesting that the platform is unsupported?
relevant logs: [INFO] --- protoc-jar-maven-plugin:3.11.4:run (default) @ gpb --- [INFO] Protoc version: 3.22.2 protoc-jar: protoc version: 3.22.2, detected platform: linux-x86_64 (linux/amd64) protoc-jar: using default maven settings, didn't find user settings.xml protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/maven-metadata.xml protoc-jar: using default maven settings, didn't find user settings.xml protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/github/os72/protoc/maven-metadata.xml protoc-jar: using default maven settings, didn't find user settings.xml protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/maven-metadata.xml protoc-jar: using default maven settings, didn't find user settings.xml protoc-jar: downloading: https://repo.maven.apache.org/maven2/com/github/os72/protoc/maven-metadata.xml [INFO] ... [ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project gpb: Error extracting protoc for version 3.22.2: Unsupported platform: protoc-3.22.2-linux-x86_64.exe -> [Help 1] [ERROR]
protoc-jar also doesn't respect global maven settings