Thanks for the support guys, it was not a proxy issue. I upgraded my JDK/JRE from 1.6.0_03 to 1.6.0_20 and it all came back on the track, a bit strange though.
-- Akshay On Wed, Jun 23, 2010 at 4:45 PM, Martin Gainty <mgai...@hotmail.com> wrote: > > try this simple task: > > tracert repo1.maven.org > > > > someone has inserted an intervening proxy between you and maven.org > > go to $M2_HOME/conf/settings.xml and configure access to maven.ord thru > this proxy (which should look something like) > > > > <!-- proxies > | This is a list of proxies which can be used on this machine to connect > to the network. > | Unless otherwise specified (by system property or command-line switch), > the first proxy > | specification in this list marked as active will be used. > |--> > <proxies> > <!-- proxy > | Specification for one proxy, to be used in connecting to the network. > | > <proxy> > <id>optional</id> > <active>true</active> > <protocol>http</protocol> > <username>proxyuser</username> > <password>proxypass</password> > <host>proxy.host.net</host> > <port>80</port> > <nonProxyHosts>local.net,some.host.com</nonProxyHosts> > </proxy> > --> > </proxies> > > > Martin > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > Date: Tue, 22 Jun 2010 21:51:23 +0530 > > Subject: Maven in 5 minutes doesn't work > > From: akshay.sys...@gmail.com > > To: users@maven.apache.org > > > > I followed everything, line by line to install Maven on my laptop. I've > gone > > through the mailing lists, but couldn't let Maven work. > > > > As, I'm very frustrated with strange behavior of Maven, before I begin I > > would > > like to make it clear that, > > 1. I have direct internet connection > > 2. I do not have fancy firewall policies which block internet access from > > specific > > process executables. > > 3. I do not have any proxy in between > > 4. I can resolve repo1.maven.org from my laptop > > > > Kindly help. > > > > This is what I did: > > aks...@lap7:~$ echo $M2_HOME > > /home/akshay/opt/apache-maven-2.2.1 > > aks...@lap7:~$ which mvn > > /home/akshay/opt/apache-maven-2.2.1/bin/mvn > > aks...@lap7:~$ mvn --version > > Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530) > > Java version: 1.6.0_03 > > Java home: /opt/jdk1.6.0_03/jre > > Default locale: en_IN, platform encoding: UTF-8 > > OS name: "linux" version: "2.6.24-28-generic" arch: "i386" Family: "unix" > > aks...@lap7:~$ mvn archetype:generate -DgroupId=com.mycompany.app > > -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart > > -DinteractiveMode=false -e > > + Error stacktraces are turned on. > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'archetype'. > > [INFO] org.apache.maven.plugins: checking for updates from central > > [WARNING] repository metadata for: 'org.apache.maven.plugins' could not > be > > retrieved from repository: central due to an error: Error transferring > file: > > repo1.maven.org > > [INFO] Repository 'central' will be blacklisted > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does > not > > exist or no valid version could be found > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin > > 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no > valid > > version could be found > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > > at > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: > org.apache.maven.plugin.version.PluginVersionNotFoundException: > > The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not > exist > > or no valid version could be found > > at > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229) > > at > > > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91) > > at > > > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:179) > > at > > > org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540) > > ... 15 more > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: < 1 second > > [INFO] Finished at: Tue Jun 22 21:44:09 GMT+05:30 2010 > > [INFO] Final Memory: 1M/4M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > -- > > Regards, > > Akshay Dev Wankhede > > _________________________________________________________________ > The New Busy is not the old busy. Search, chat and e-mail from your inbox. > > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 -- Regards, Akshay Dev Wankhede