Hi, One of the observation of mvn build is it fails to download few of the files which it normally downloads and keeps in ~/.m2 directory. The work around I have tried and helps is, do wget on the same url and place it right place in .m2 directory structure and continue the build which continues .
When the download fails, generally wget also stops for a while after 98% download and finally downloads 100%. Looks like mvn is not aware of such retry or more timeouts to avoid such build failures.. In this forum, if anybody has faced similar issues and is aware of better options in mvn command to avoid such build failures? Ex: Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.cassandra.server.feature/4.2.0/org.wso2.carbon.cassandra.server.feature-4.2.0.zip 8088/8220 KB [ERROR] Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:4.2.0 org.apache.maven.plugin.MojoExecutionException: Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:4.2.0 wget http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.cassandra.server.feature/4.2.0/org.wso2.carbon.cassandra.server.feature-4.2.0.zip --2014-04-09 12:49:31-- http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.cassandra.server.feature/4.2.0/org.wso2.carbon.cassandra.server.feature-4.2.0.zip Resolving maven.wso2.org (maven.wso2.org)... 204.13.82.214 Connecting to maven.wso2.org (maven.wso2.org)|204.13.82.214|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 8416576 (8.0M) [application/zip] Saving to: `org.wso2.carbon.cassandra.server.feature-4.2.0.zip' 100%[==================================================================================================================================>] 8,416,576 96.1K/s in 1m 43s Last-modified header invalid -- time-stamp ignored. 2014-04-09 12:51:16 (79.9 KB/s) - `org.wso2.carbon.cassandra.server.feature-4.2.0.zip' saved [8416576/8416576] Continue build from the point it failed. mvn clean install -Dmaven.test.skip=true -rf :stratos-profile-gen Thanks Raghavendra
