• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Maven Repo Forbidden

 
Ranch Hand
Posts: 191
14
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,

I'm trying to run a Maven clean install of an Eclipse project on my work PC.  The install fails for the following reason:

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5:
Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to ibiblio.org (http://mirrors.ibiblio.org/maven2):
Access denied to: http://mirrors.ibiblio.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom ,
ReasonPhrase:Forbidden. -> [Help 1]

My work's Internet firewall has blocked http://mirrors.ibiblio.org/maven2 for some reason.  When I try to open that page in a browser I get a security message saying the site is forbidden.

Without using that site/mirror is there any alternative I can use to get the maven-clean-plugin:pom2.5?
 
Saloon Keeper
Posts: 24499
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Blocking ibiblio is almost as bad as blocking oracle.com. There are an awful lot of business resources on ibiblio including OS images. Maybe someone has been abusing it by downloading Dwarf Fortress, but nevertheless, it really should be available to IT staff.

It isn't just your firewall, though. An independent check seems to indicate that this site is down. Which is a terrible irony for a server named "mirrors".
 
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What about using http://repo1.maven.org/maven2?
 
Simon Ritchie
Ranch Hand
Posts: 191
14
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Blocking ibiblio is almost as bad as blocking oracle.com. There are an awful lot of business resources on ibiblio including OS images. Maybe someone has been abusing it by downloading Dwarf Fortress, but nevertheless, it really should be available to IT staff.



Glad to hear someone say that.  It's infuriating trying to get access to things in here, sometimes...

Knute Snortum wrote:What about using http://repo1.maven.org/maven2?



I can access the site in a browser without any issues, if that's what you mean?  Is there a way to configure my POM so that it points to the Central Repo instead of the ibiblio site?
 
Tim Holloway
Saloon Keeper
Posts: 24499
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, I think that you can set alternative repositories in your home directory's maven config file.

But Maven doesn't depend on a single repository - it runs through a whole set of them precisely to prevent issues relating to the unavailability of a single repo. So you may have bigger network issues.
 
Knute Snortum
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the setup for explicitly defining a repository in Maven.  You can add as many <repository> nodes as you like.  But as Tim said, there may be deeper problems, as Maven uses this repository by default anyway.
 
Tim Holloway
Saloon Keeper
Posts: 24499
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah. I went back and looked. Among the extra repositories that I have defined is my local Nexus repo. I have Sonatype Nexus running in a Docker container on one of my servers (another container holds Jenkins).

Nexus - and products like it - can provide a number of benefits. Aside from its ability to serve as repository for in-house resources, Nexus also acts as a caching server for external repositories. So for shops with obsessive firewalls, you can permit the Nexus server access while still denying line-level machine access.

Maven, of course, caches locally, but you still have to do the initial fetch. And if you have hundreds of development machines, that cuts down on the external Internet load. So it's a big win all around.
 
Simon Ritchie
Ranch Hand
Posts: 191
14
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the replies, folks.

I've added the repository to my POM and run a clean install again but get the same result.  I've a feeling that I could specify a number of repositories but the company's firewall will find problems with many of them.  At the minute, I'm not working in a purely Java development capacity for the company (though there are Java development teams in the building - I've no contact with them but believe they're using Ant as a build tool) so I wouldn't have the justification to remove the restrictions that are in place.  Unfortunate, I guess.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic