2017-05-05 22 views
2

目前有一些輸出從構建如下:lein:找不到maven上的protoc jar,即使我找到所有其他的protobuffer jar在那裏?

Retrieving com/google/protobuf/protobuf-java/3.3.0/protobuf-java-3.3.0.jar from central 
Retrieving com/google/protobuf/protobuf-java-util/3.3.0/protobuf-java-util-3.3.0.jar from central 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in central (https://repo1.maven.org/maven2/) 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in clojars (https://clojars.org/repo/) 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in sonatype snapshots (https://oss.sonatype.org/content/repositories/snapshots) 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in sonatype releases (https://oss.sonatype.org/content/repositories/releases) 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in SonatypeSnapshots (https://oss.sonatype.org/content/repositories/snapshots/) 
Could not find artifact com.google.protobuf:protoc:jar:3.3.0 in SonatypeReleases (https://oss.sonatype.org/content/repositories/releases/) 

所以它找到protobuf-javaprotobuf-java-util罰款,卻找不到protoc

我檢查,並聲稱它的存在:https://mvnrepository.com/artifact/com.google.protobuf/protoc

我在project.clj有這些行:

[com.google.protobuf/protobuf-java "3.3.0"] 
[com.google.protobuf/protobuf-java-util "3.3.0"] 
[com.google.protobuf/protoc "3.3.0"] 

它發現前兩個細,那麼失敗就上!

我不能爲我的生活找出這裏發生了什麼。任何線索?我之前已經解決了許多愚蠢的依賴性問題,但是這個沒有意義。

謝謝!

回答

1

這種特殊的人工製品需要你指定一個描述運行時平臺的分類:

[com.google.protobuf/protoc "3.3.0" :classifier "linux-x86"] 

如果使用The Central Repository Search Engine並搜索「protoc」你會看到它與所有的不同分類的第一行列在Download列。

相關問題