Getting error when setting up Eclipse and IntelliJ with maven:
1) Eclipse ------->
a) Error 1:
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not tran
sfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.7 from/to ce
ntral (https://repo.maven.apache.org/maven2): repo.maven.apache.org
b) Error 2:
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be
resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: Failure to transfer
org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-
compiler-plugin:pom:3.1 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be
resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: Could not transfer artifact
org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-
testCompile, phase: test-compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile,
phase: compile)
2) IntelliJ Error ------->
Failed to read Artifact descriptor
... I have set up Maven on Windows and tried to compile from Commandline too but getting error:
3) MVN Command-Line Error ------->
a)
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not tran
sfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.7 from/to ce
ntral (https://repo.maven.apache.org/maven2): repo.maven.apache.org
b) Caused by: java.net.UnknownHostException: repo.maven.apache.org