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?
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.
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.