hello, since it works for my without any problem and the error you see with "-e" flag set is not sufficient. maybe you try
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -X it produces more output but you might be able to see the cause why central maven repository got blacklisted. but I have to mention one case where I was in Delhi and I was not able to route to one of the sonatype.org server, traceroute got stuck somewhere. but a traceroute from europe succeeded and a day before it worked from Amritsa. all I want to say here it that a lot of strange things are possible. with regards Kristian On Tue, Jun 22, 2010 at 9:51 PM, Akshay Dev Vankhede <akshay.sys...@gmail.com> wrote: > 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 > -- Kristian Meier + Saumya Sharma + Sanuka Meier Vadakkethu House, Edayanmula West PO - 689532, Pathanamthitta District, Kerala, INDIA tel: +91 468 2319577 protect your privacy while searching the net: www.ixquick.com _=_ q(-_-)p '_) (_` /__/ \ _(<_ / )_ (__\_\_|_/__) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org