gpt4 book ai didi

java - Windows 8 64 位机器安装 Karma 集成工具时出现的问题

转载 作者:太空宇宙 更新时间:2023-11-04 14:26:09 26 4
gpt4 key购买 nike

我已通过以下步骤在我的 Windows 8 64 位计算机上安装了 Maven 3.0.5:

已下载 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.5M2 的值为 %M2_HOME%\binJAVE_HOME 值为 C:\Program Files\Java\jdk1.8.0_25值为 %M2%;%JAVA_HOME%\bin 的 PATH

在此之后,当我输入 mvn --version 我得到

Apache Maven 3.0.5(r01de14724cdef164cd33c7c8c2fe155faf9602da;2013-02-19 19:21:28+0530)Maven 主目录:C:\Program Files\Apache Software Foundation\apache-maven-3.0.5Java版本:1.8.0_25,供应商:Oracle CorporationJava 主目录:C:\Program Files\Java\jdk1.8.0_25\jre默认区域设置:en_US,平台编码:Cp1252操作系统名称:“windows 8”,版本:“6.2”,架构:“amd64”,系列:“dos”

我已经下载了JDK和JRE在下面的文件夹中C:\Program Files\Java\jdk1.8.0_25C:\Program Files\Java\jre1.8.0_25

现在要安装 Karma,我下载了 Web-Karma-Master zip,存档位于C:\Program Files\Web-Karma-master\Web-Karma-master

现在,当我在此目录中键入 mvn clean install 时,我会得到以下内容:

 ..
...
...
[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.

请帮忙。我已按照上述顺序完成了上述所有操作。但我无法解决这个问题。

阿卡纳。

最佳答案

创建文件 settings.xml.m2您的 HOME 的文件夹目录。添加以下内容:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>your.org</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>*.your.org</nonProxyHosts>
</proxy>
</proxies>

</settings>

删除<username><password>如果您的代理服务器不需要身份验证,则标记。您可以在浏览器中查找这些值 settings .

另请参阅 proxies maven settings reference 部分.

关于java - Windows 8 64 位机器安装 Karma 集成工具时出现的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26644859/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com