grpc mvn protobuf:compile 過程

grpc mvn protobuf:compile 過程html

編寫代碼以後,直接使用 mvn protobuf:compile會報錯,木有protoc.exe文件;windows

可使用Terminal輸入mvn命令,也能夠在maven projects視圖中選擇 protobuf:compile而後運行;maven

學習了:https://www.cnblogs.com/ghj1976/p/5391205.html  這個有IntelliJ IDEA 操做視圖學習

https://my.oschina.net/u/2335693/blog/626530  這個下載protoc.exe文件google

按照IntelliJ IDEA的提示進行protoc.exe的maven 安裝.net

mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.0.0 -Dclassifier=windows-x86_64} -Dpackaging=exe -Dfile=D:\protobuf\protoc.exehtm

安裝完畢以後能夠執行 mvn protobuf:compile命令blog

相關文章
相關標籤/搜索