File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven unable to download artifacts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven unable to download artifacts" Watch "maven unable to download artifacts" New topic

maven unable to download artifacts

Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108

Hi All,
I have written a build script using maven. the maven is running behind our company's proxy so i have entered the proxy information correctly in the settings.xml file. Its a linux machine. For some dependency like below when i try running maven i am getting Connection timeout exception hence the build is failing. below is the settings from the settings.xml

Below is the trace of the exception

All other artifacts are being fetched properly and i can ping from the machine. I have no clue as of how to fix this.

Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I assume that the URL you provide to the flex framework is the artifact that would not download. How are you declaring the repository? Also there is usually additional information about the download attempts right before the stack trace, it would be helpful to see those also.

JBoss In Action
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
I could resolve it by temporarily uploading the artifact to the internal repository. The reason I was not able to download the artifact behind the proxy is that I was using the maven-external-dependency plugin to download from n external url and the plugin is not connection the url through the proxy setting. I guess its a bug in the plugin.

I agree. Here's the link:
subject: maven unable to download artifacts
It's not a secret anymore!