Encog编译错误

时间:2015-09-02 18:43:25

标签: java maven encog

我使用Windows 7使用Maven编译Encog。尝试执行C:\Users\294365\Desktop\Encog\encog-java-core-3.3>mvn package [INFO] Scanning for projects... Downloading: https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.encog:encog-core:3.3.0: Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/23.235.39.215] failed: Connection refused: connect and 'parent.relativePath' points at wrong local POM @ line 64, column 10 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.encog:encog-core:3.3.0 (C:\Users\294365\Desktop\Encog\ encog-java-core-3.3\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.encog:encog-core:3.3.0: Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://rep o.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apa che.org/23.235.39.215] failed: Connection refused: connect and 'parent.relativePath' points at wrong local POM @ line 64, column 10 -> [Help 2] [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 命令时,我收到以下错误:

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>5</version>
<relativePath>C:\Users\294365\Desktop\Encog\encog-java-core-3.3\org_sonatype_oss_ossparent_pom_5</relativePath>
</parent>

我对此的解释是,它试图联系错误中提到的Web地址以获取父POM文件并将其恢复。我正在为项目使用的工作计算机受到相对严格的控制,可以进出。例如,IE被禁用,不能用于到达外部。我想知道这是否是错误的原因,但我不确定。我拿了oss-parent:pom:5文件并将其保存为源文件中的.xml,并试图通过添加如下所示的relativePath来重定向encog POM:

window.postMessage

这导致与上面完全相同的错误。

0 个答案:

没有答案