Java 为windows 8 64位计算机安装Karma集成工具时出现的问题
我已通过以下步骤在我的windows 8 64位计算机上安装了Maven 3.0.5: 下载的Apache -Mave3.0.5.bI.Zip和存档存储在C:\程序文件\ Apache软件基金会中。我对环境变量进行了如下更改: M2_HOME,值为C:\Program Files\Apache软件基金会\Apache-maven-3.0.5 值为%M2\u HOME%\bin的M2 JAVE_HOME,值为C:\Program Files\Java\jdk1.8.0_25 值为%M2%的路径;%JAVA\u HOME%\bin 在这之后,当我输入mvn时——我得到的版本 Apache Maven 3.0.5(r01de14724cdef164cd33c7c8c2fe155faf9602da;2013-02-19:21: 28+0530) Maven主页:C:\Program Files\Apache软件基金会\Apache-Maven-3.0.5 Java版本:1.8.0_25,供应商:Oracle公司 Java主页:C:\Program Files\Java\jdk1.8.0\U 25\jre 默认区域设置:en_US,平台编码:Cp1252 操作系统名称:“windows 8”,版本:“6.2”,arch:“amd64”,系列:“dos” 我已经在下面的文件夹中下载了JDK和JRE C:\ProgramFiles\Java\jdk1.8.0\U 25 C:\ProgramFiles\Java\jre1.8.0\U 25 现在要安装Karma,我下载了Web Karma Master zip,档案放在下面 C:\Program Files\Web Karma master\Web Karma master 现在,当我在此目录中键入mvn clean install时,我得到以下信息:Java 为windows 8 64位计算机安装Karma集成工具时出现的问题,java,maven,karma-runner,Java,Maven,Karma Runner,我已通过以下步骤在我的windows 8 64位计算机上安装了Maven 3.0.5: 下载的Apache -Mave3.0.5.bI.Zip和存档存储在C:\程序文件\ Apache软件基金会中。我对环境变量进行了如下更改: M2_HOME,值为C:\Program Files\Apache软件基金会\Apache-maven-3.0.5 值为%M2\u HOME%\bin的M2 JAVE_HOME,值为C:\Program Files\Java\jdk1.8.0_25 值为%M2%的路径;%
..
...
...
[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 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>
请帮忙。我已经按照前面提到的顺序完成了上述所有工作。但我无法解决这个问题
Archana.在
主目录的文件夹.m2
中创建一个文件settings.xml
。添加以下内容:
..
...
...
[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 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>
安全代理
第节。您是否支持代理服务器?如果是这样,您需要在settings.xml
中配置proxy
设置。是的,我在代理服务器后面。我需要在settings.xml中配置什么?添加了一个带有详细信息的答案…m2文件夹是原始settings.xml文件所在的文件夹C:\program files\apache software foundation\apache-maven-3.0.5\conf文件夹。正确吗?否。它是C:\Users\archana
(假设您的windows用户名是archana
)中的一个子文件夹。我已在m2文件夹中的设置文件xml中更改了所需的设置。我已根据文件中的代理设置提供了主机、用户名、密码和端口(80)。现在,当我在命令提示符下的WebKarma主目录中键入mvn clean install时,仍然会出现上述错误。现在有什么问题?m2
或.m2
?它已经创建了吗?它是否有存储库
子文件夹?是的,该文件夹已经创建,并且它有一个存储库子文件夹。它是.m2文件夹