Saurabh Rana
Saurabh Rana

Reputation: 167

Maven install command in Eclipse fails with error Access denied , Error code 403, Forbidden

When I do Eclipse maven install, it fails with the below error message:

Access denied to http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom. Error code 403, Forbidden

Below is the complete error message :

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project IoTIPDev: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:maven-surefire-common:jar:2.12.4 -> org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1: Failed to read artifact descriptor for org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1: Could not transfer artifact org.apache.maven.plugin-tools:maven-plugin-annotations:pom:3.1 from/to central (http://repo.maven.apache.org/maven2): Access denied to http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom. Error code 403, Forbidden -> [Help 1] [ERROR]

What can be the issue?

Upvotes: 0

Views: 3106

Answers (1)

Sakamiai
Sakamiai

Reputation: 405

For some reason eclipse's maven is not allowed access to maven-plugin-annotations-3.1.pom.

Verify that Eclipse is using the same version of maven than the one used with command line.

If running in windows run Eclipse as Admin.

Upvotes: 1

Related Questions