> I'm using Maven 3.0.3.  Within the last hour, this started happening, and I
> can't figure out why.  When I run "mvn dependency:tree" or "mvn clean
> compile", I get this error -- "Access denied to:
> http://repository.jboss.org/maven2/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom,
> ReasonPhrase:Forbidden" ...

First off, you should probably be connecting to a local Maven Repo
Manager like Nexus if you are serious about using Maven in your
organization.

Do a search in the filesystem of ~/.m2/repository and see what file(s)
changed in the last 2 hours. Look for pom files. Open the pom files
and look for <repository> declarations. See if you find one that
points to http://repository.jboss.org/maven2 rather than
http://repository.jboss.org/nexus/content/...

If you find one, you know that is the culprit/problem. There are
various ways to fix that repo problem but that will be left as an
exercise for the reader. This is also easier to accomplish with an MRM
between your developer machines and the public Internet.

If you do not find one, broaden your search to all pom files under
~/.m2/repository and look for that jboss repo url without the
/nexus/content/.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to