Error while creating maven project from eclipse -


when create new maven project eclipse, getting following error

could not calculate build plan: plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-resources-plugin:jar:2.5 plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or 1 of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-resources-plugin:jar:2.5

this error see in pom.xml

failure transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.5 http://repo.maven.apache.org/maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates forced. original error: not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): access denied http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom. error code 403, forbidden

i using:-

eclipse ide java ee developers 2.0.1.20130919-0803-kepler maven version: apache-maven-3.2.1 

i inside company network, have configured proxy settings in settings.xml

browsing directory @ http://repo.maven.apache.org/maven2 has been disabled. can access address in browser , according message:

browsing directory has been disabled.

view directory's contents on http://search.maven.org instead.

find out more central repository.

to overcome problem, can pass custom location archetype catalog file maven:

mvn archetype:generate -darchetypecatalog=http://search.maven.org/remotecontent?filepath=archetype-catalog.xml 

or can download catalog file , put in local .m2 directory, suppose.

if using eclipse, go preferences -> maven -> archetypes , click on add remote catalog.... enter http://search.maven.org/remotecontent?filepath=archetype-catalog.xml catalog file.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -