Hi, can it be that your Internet connection is unreliable and sometimes download is interrupted? Maven by default will not reattempt to dowload artifacts until the next day. You can try adding -U to force Maven to redownload failed artifacts and snapshots.
Regards, htfv (Aliaksei Lahachou) On Sat, Jun 30, 2012 at 1:42 PM, sdgvdsg sdgvdsg <[email protected]> wrote: > Hi, > > I followed > http://maven.apache.org/guides/getting-started/maven-in-five-minutes.htmlin > order to create my first Maven project. > The installation was successful but when i try to download the dependencies > I have some downloading activities but after a while the downlaoding stops > and eventually there will be an error as the one below. > > This is my home network and I don't have proxy, also part of the > dependencies are being downloaded so the settings should be correct. > > On the page > http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html > there is a text > *If you have just installed Maven, it may take a while on the first run. > This is because Maven is downloading the most recent artifacts (plugin jars > and other files) into your local repository. You may also need to execute > the command a couple of times before it succeeds. This is because the > remote server may time out before your downloads are complete. Don't worry, > there are ways to fix that. > * > But I tried 15-20 times same thing is happening. What could be the problem, > do I need to set up something else? > > I am investigating this issue couple of days but I still can't find a > solution. > Thank You > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 30:01.055s > [INFO] Finished at: Fri Jun 29 19:11:55 CEST 2012 > [INFO] Final Memory: 6M/107M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of > its d > ependencies could not be resolved: Could not transfer artifact > org.apache.maven. > plugins:maven-clean-plugin:jar:2.4.1 from/to central ( > http://repo.maven.apache.o > rg/maven2): GET request of: > org/apache/maven/plugins/maven-clean-plugin/2.4.1/ma > ven-clean-plugin-2.4.1.jar from central failed: Read timed out -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > swit > ch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please rea > d the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti > onException >
