简体   繁体   中英

Error is resolving repository

I'm running below command and I'm getting this error.

mvn clean install -U

It's working correctly on other's machine.I can also access

http://repo.maven.apache.org/maven2

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=300m; suppor
t was removed in 8.0
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/wildfly/bom/jboss-javaee-7.
0-wildfly/9.0.1.Final/jboss-javaee-7.0-wildfly-9.0.1.Final.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.ideas.MyProj:MyProj:2.0.1-SNAPSHOT (C:\MyProj\pom.xml)
has 1 error
[ERROR]     Non-resolvable import POM: Could not transfer artifact org.wildfly.b
om:jboss-javaee-7.0-wildfly:pom:9.0.1.Final from/to central (http://repo.maven.a
pache.org/maven2): Connection to http://repo.maven.apache.org refused @ line 115
6, column 16: Connection refused: connect -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException

Symlink是问题所在,她的setting.xml没有符号链接,因此我们使用cmd创建了符号链接,并且可以正常工作。

mklink settings.xml C:\MyProj\install\settings\Env-Local.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM