2016-01-21 113 views
0

我有一個有人給我的使用涼亭的maven項目。我正在嘗試在我已經設置了所有相關版本的虛擬機上進行基本的mvn clean安裝。我建立了我的VM較大的項目,所以我不認爲這是一個網絡錯誤,但我不斷地相處的在Windows VM上構建與涼亭的maven項目的問題

ECMDERR Failed to execute "git ls-remote --tags --heads  git://github.com/angular.bower-angular-mocks.git", exit code of #128 fatal:  unable to connect to github.com: 192.30.252.131]: errno=No such file or  directory 

行錯誤,我能得到這個位置從VM在瀏覽器中,然後運行命令在命令提示符下,所以我不認爲這個位置有特定的問題。此外,雖然它在構建中的大致相同點(在bower.bootstrap#3.2.0之後)中斷,但它每次都會給出不同的git地址作爲失敗點。

我對此有點難堪。我已經重新安裝了幾次(npm install -g bower),並且似乎沒有任何問題。我現在唯一能想到的是,它可能與從VM(VMware工作站)運行有關。我不想在我的主機上更改軟件版本,但我想在看到這條路線之前是否有人有任何想法。

在此先感謝...

的問題是圍繞在POM安裝參數...

所以相關條目

<plugin> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>exec-maven-plugin</artifactId> 
      <version>1.3.2</version> 
      <executions> 
       <execution> 
        <phase>generate-sources</phase> 
        <goals> 
         <goal>exec</goal> 
        </goals> 
       </execution> 
      </executions> 
      <configuration> 
       <executable>bower</executable> 
       <arguments> 
        <argument>install</argument> 
       </arguments> 
       <workingDirectory>${basedir}</workingDirectory> 
      </configuration> 
     </plugin> 

如果我刪除了參數

   <arguments> 
        <argument>install</argument> 
       </arguments> 

然後項目建立。也許我應該回去再看看這個。

我會離開的問題開放,現在雖然情況下,任何人碰到它之前

bowser.json

{ 
"name": "java-angular-seed", 
"version": "0.0.0", 
"authors": [ 
    "Mrs X" 
], 
"description": "A seed project", 
"keywords": [ 
    "java", 
    "maven", 
    "angularjs", 
    "seed" 
], 
"license": "Apache 2.0", 
"homepage": "http://matador.com", 
"private": true, 
"ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components", 
    "src/main/webapp/vendor", 
    "test", 
    "tests" 
], 
"dependencies": { 
    "angular-loader": "1.5.0-rc.0", 
    "angular-mocks": "1.5.0-rc.0", 
    "angular-route": "1.5.0-rc.0", 
    "angular": "1.5.0-rc.0", 
    "bootstrap": "3.2.0" 
}, 
"main": "src/main/webapp/index.html" 
} 
+0

你能告訴我們你的構建文件嗎? –

+0

你也可以向我們展示'bower.json'文件嗎? –

+0

你的.ssh目錄中有多個ssh密鑰嗎? – Gavriel

回答

0

道歉我已經找到了答案elsewhere ...

「https://」.insteadOf git://

「問題是,鮑爾試圖通過git://協議來檢索軟件包,其中se ems在我的機器上被阻止。「

非常感謝您的幫助。