我在命令下運行,我得到這個錯誤。錯誤解決存儲庫
mvn clean install -U
這是對對方的machine.I正常工作也可以訪問
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
連接問題。你可以把url鏈接到pom嗎?你在http代理後面嗎?嘗試比較〜/ .m2/settings.xml,在您擁有的機器上查找代理標籤。 – Jepper
U是正確的Jepper,她的符號鏈接不起作用,現在我們手動創建了符號鏈接。我們來看看後面的內容。 –
創建符號鏈接後它工作:),它的構建進一步。非常感謝。 –