aspose file tools*
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
Author

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





http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/framework_4.6.0.23201.swz

Below is the trace of the exception



All other artifacts are being fetched properly and i can ping fpdownload.adobe.com 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
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

I assume that the URL you provide to the flex framework is the artifact that would not download. How are you declaring the http://fpdownload.adobe.com 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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: maven unable to download artifacts