Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Pom.xml issue

I'm trying to make a spring mvc project using maven and getting following error in pom.xml:

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 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:2.3.2 from/to central (http:// repo.maven.apache.org/maven2): Connection refused: no further information to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom

Is it related to proxy or firewall? What can I do to fix it?

like image 575
user2501168 Avatar asked Oct 29 '13 07:10

user2501168


People also ask

Why POM xml is ignored?

The root cause was that the pom. xml file was ignored (Settings - Build, Execution, Deployment - Maven - Ignored Files). Thus, updates to this file pulling in a new version of a dependency did not trigger anything meaningful in IntelliJ IDEA (causing compilation issues). Note that the pom.

How do you fix the first line error in POM xml?

Right click on Springboot Application>>Maven>>update project. The error sign from your pom. xml will go away.


1 Answers

Sounds like you need to set up a maven proxy in your settings.xml.

Have a look (for example) in your web browser and see how it is set up.

From the documentation on Configuring a proxy:

<proxy>
  <active>true</active>
  <protocol>http</protocol>
  <host>proxy.somewhere.com</host>
  <port>8080</port>
  <username>proxyuser</username>
  <password>somepassword</password>
  <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
like image 79
vikingsteve Avatar answered Oct 11 '22 07:10

vikingsteve