MrProper
MrProper

Reputation: 1580

Connection to http://repo.maven.apache.org refused

I do want to use maven at home for my project, but I can't connect to central repository.

I saw some people suggesting using proxy, but what proxy should I use? How do I determine it? I am very confused about this.

If someone could explain what I need to do step by step I would be very grateful.


Edit

This turned out to be a firewall issue.

Upvotes: 1

Views: 21683

Answers (1)

Andrzej Jozwik
Andrzej Jozwik

Reputation: 14649

See Manually Overriding the Built-in Repositories. Or add to your pom (the same for pluginRepository):

<repository>              
          <id>central</id>
          <name>Central</name>
          <url>http://repo1.maven.org/maven2</url>
</repository>

Upvotes: 2

Related Questions