我已經安裝了Maven的3.0.5在我的Windows 8 64位機通過以下步驟噶集成工具:問題在安裝Windows 8 64位機
下載apache-maven-3.0.5.bin.zip並將該存檔存儲在C:\ Program Files \ Apache Software Foundation中。我更改了如下環境變量: M2_HOME,值爲C:\ Program Files \ Apache Software Foundation \ apache-maven-3.0.5 M2,值爲%M2_HOME%\ bin JAVE_HOME,值爲C:\ Program Files \ Java \ jdk1.8.0_25 PATH與值%M2%;%JAVA_HOME%\ bin中
在此之後,當i型MVN --version我得到
阿帕奇的Maven 3.0.5(r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013年2月19日19 :21: 28 + 0530) Maven home:C:\ Program Files \ Apache Software Foundation \ apache-maven-3.0.5 Java版本:1.8.0_25,供應商:Oracle Corporation Java主頁:C:\ Program Files \ Java \ jdk1.8.0_25 \ jre 默認語言環境:en_US,平臺編碼:Cp1252 操作系統名稱:「windows 8」,版本:「6.2」,arch:「amd64」,family : 「DOS」
我已經下 ç下載JDK和JRE中的文件夾:\ Program Files文件\的Java \ jdk1.8.0_25 C:\ Program Files文件\的Java \ jre1.8.0_25
現在對於Karma安裝我下載了Web-Karma-Master壓縮包並將壓縮包放在 C:\ Program Files \ Web-Karma-master \ Web-Karma-master
現在當我輸入mvn clean install i在此目錄中,我收到以下內容:
..
...
...
[INFO] karma-mr .......................................... SKIPPED
[INFO] karma-storm ....................................... SKIPPED
[INFO] karma-web-services ................................ SKIPPED
[INFO] web-services-rdf .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.285s
[INFO] Finished at: Wed Oct 29 13:21:14 IST 2014
[INFO] Final Memory: 8M/109M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.codehaus.mojo:exec-maven-plugin:1.1
or one of its dependencie s could not be resolved: Failed
to read artifact descriptor for org.codehaus.mojo:
exec-maven-plugin:jar:1.1: Could not transfer artifact
org.codehaus.mojo:exec-maven-plugin:pom:1.1 from/to central
Connection to http://repo.maven.apache.org refused:
Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors,
re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable
full debug logging.
[ERROR]
[ERROR] For more information about the errors and
possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException.
請幫忙。我按照上述順序完成了上述所有操作。但我無法解決這個問題。
Archana。
你在代理服務器後面嗎?如果是這樣,你需要在'settings.xml'中配置'proxy'設置。 – Raghuram 2014-10-30 04:30:52
是的,我在代理服務器後面。我需要在settings.xml中配置什麼? – Archana 2014-10-30 07:27:27
添加了詳細答案... – Raghuram 2014-10-30 07:59:21