logo image

gRPC project build failing with Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project grpc-hello-world: Missing


I am getting following error while building gRPC project

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project grpc-hello-world: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.5.1-1
[ERROR] 
[ERROR]   Try downloading the file manually from the project website.
[ERROR] 
[ERROR]   Then, install it using the command: 
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.5.1-1 -Dclassifier=${os.detected.classifier} -Dpackaging=exe -Dfile=/path/to/file
[ERROR] 
[ERROR]   Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.5.1-1 -Dclassifier=${os.detected.classifier} -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR]   Path to dependency: 
[ERROR]   	1) com.helloworld.r4e:grpc-hello-world:jar:1.3.001-SNAPSHOT
[ERROR]   	2) com.google.protobuf:protoc:exe:${os.detected.classifier}:3.5.1-1
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact: 
[ERROR]   com.helloworld.r4e:grpc-hello-world:jar:1.3.001-SNAPSHOT
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   artifactory.mirror (http://central.maven.org/maven2/, releases=true, snapshots=true)
[ERROR] 
[ERROR] -> [Help 1]

1 Answer

11 months ago by

I was missing os-maven-plugin jar hence i was unable to resolve my OS to download appropriate jar. Adding the following dependency fixed the issue

<extensions>
	<extension>
		<groupId>kr.motd.maven</groupId>
		<artifactId>os-maven-plugin</artifactId>
		<version>1.5.0.Final</version>
	</extension>
</extensions>
11 months ago by Megamind