2016-11-15 37 views
0

我想從https://github.com/aegnor/scalapb-maven-example運行示例,我得到以下錯誤。從https://github.com/aegnor/scalapb-maven-example的scalapb-maven-example給我錯誤

[ERROR]未能執行目標org.codehaus.mojo:EXEC-行家-插件:1.5.0:JAVA(生成-階-protobuf的類)上項目scalapb-行家: 執行生成-階-protobuf-classes of goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java failed:Plugin org.codehaus.mojo:exec-maven-plugin:1.5.0或其某個依賴關係無法解析:未能找到com.trueaccord.scalapb:scalapbc:jar:0.4.20中的https://repo.maven.apache.org/maven2緩存在本地存儲庫中,直到中央的更新間隔過去或更新被強制後纔會重新解析分辨率 - > [Help 1]

+0

你能刪除你的'C:/用戶/ your_user_name/.m2目錄/文件夾repository'並嘗試再次運行該應用程序。使用'mvn clean install -U'運行應用程序。 –

回答

0

請按照示例這裏https://github.com/thesamet/scalapb-maven-example

此外,你可能想改變0.4.20到最新版本0.5.x(目前0.5.44)

+0

我按照指示,也做了一個mvn乾淨,清理回購文件夾...獲取以下錯誤 – shylas

+0

[錯誤]在當前項目和插件組[org.apache.maven中找不到前綴'scala'的插件。插件,org.codehaus.mojo]可從存儲庫[本地(/var/root/.m2/repository),中央(https://repo.maven.apache.org/maven2)] – shylas

+0

我有斯卡拉2.11 – shylas