Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven build issue:Unauthorized.

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to generate sources/build the project I am working on and for some reason the network seems unauthorized (check log blow) while trying to download a dependency jar file. What is the way around this? From what I can think of Maven tries to download the jar as it is not available on my '.m2/repository'. What if I were to manually place the jar file under the folder structure Maven looks for it?

Any suggestions would be of great help.



Thanks,
Raj.
 
N Sahni
Ranch Hand
Posts: 55
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can definitely put the jar and pom file manually at the location '.m2/repository/junit/junit/4.8.1/' as a work around.
But ideally maven should be able to download automatically from the repository.

Check whether you have access to the download location. If you are using proxy settings for accessing the URL then make sure you've configured the proxy settings in Maven settings.xml properly.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect just a temporary server error. I pasted the URL into my browser and the POM was displayed without any security error. You should try the same.
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Thanks for the suggestions. I suspect that the above was caused by the Firewall blocking access to the URL from which the jar files would be downloaded. When I rebuild the application using a different internet connection (USB modem) it was successful.

Cheers,
Raj.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic