• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven build issue:Unauthorized.

 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 55
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic