mvn erro no pacote: host desconhecido repo.maven.apache.org

0

Estou usando o intelliJ IDEA 14.1.4 e quando

mvn package

é inserido recebo esta mensagem

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------

[INFO] Building test1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.344s
[INFO] Finished at: Sat Dec 12 15:00:57 IST 2015
[INFO] Final Memory: 9M/88M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.3: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.3 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [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

Eu configurei o proxy em ~ / .m2 / setting.xml mas, ainda recebo esse erro. Ajuda por favor ..

    
por Ivan Fiery Prince 12.12.2015 / 10:57

1 resposta

0

Experimente o comando abaixo no caminho em que seu pom.xml está presente,

$ git config --global url."https://".insteadOf git:/

funcionou para mim.

    
por prabhugs 10.03.2016 / 09:52