Yes, wget does work against central. It is blocked (by central). /Anders
On Tue, Jun 22, 2010 at 08:00, Akshay Dev Wankhede <akshay.sys...@gmail.com>wrote: > Maven failed to resolve repo1.maven.org. I tried manually it resolves. > To further dig into > the matter I tried to hit the URL manually using Firefox: > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.pom > It worked, then I tried to hit the same URL using wget, it threw 403 > Forbidden: > > aks...@lap7:~$ wget 'http://repo1.maven.org/maven2/org/apache/maven/ > plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0- > alpha-4.pom<http://repo1.maven.org/maven2/org/apache/maven/%0Aplugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-%0Aalpha-4.pom> > ' > --11:19:54-- > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.pom > => `maven-archetype-plugin-2.0-alpha-4.pom' > Resolving repo1.maven.org... 38.97.124.18 > Connecting to repo1.maven.org|38.97.124.18|:80... connected. > HTTP request sent, awaiting response... 403 Forbidden > 11:19:54 ERROR 403: Forbidden. > > What's going on? I don't sit behind fancy firewalls/proxies which can > block traffic based on User-Agents/executable processes. > Kindly suggest. > > > ---------- Forwarded message ---------- > From: David Pollak <feeder.of.the.be...@gmail.com> > Date: Jun 16, 7:03 pm > Subject: Cannot create Lift projects using Maven and Netbeans > To: Lift > > > Looks to me like Maven is unable to communicate with the main Maven > repository. This could be for a number of reasons: > > - Your machine is not connected to the Internet > - You are behind a firewall and your proxy settings are not set for > Maven/NetBeans (I don't know how to set this) > - The main Maven repository was offline > > On Wed, Jun 16, 2010 at 4:27 AM, Akshay Dev Wankhede < > > > > akshay.sys...@gmail.com> wrote: > > Tried to create Lift project in NetBeans following is the error: > > > NetBeans: Executing '/home/akshay/opt/apache-maven-2.2.1/bin/mvn - > > DarchetypeVersion=RELEASE -Darchetype.interactive=false - > > DgroupId=com.radical -DarchetypeArtifactId=lift-archetype-basic - > > DarchetypeRepository=http://scala-tools.org/repo-releases- > > Dversion=1.0-SNAPSHOT -DarchetypeGroupId=net.liftweb - > > Darchetype.repository=http://scala-tools.org/repo-releases-Dbasedir=/ > > home/akshay/NetBeansProjects -Dpackage=com.radical.mavenproject1 - > > DartifactId=mavenproject1 -Dnetbeans.execution=true --batch-mode -- > > errors -e org.apache.maven.plugins:maven-archetype-plugin:2.0- > > alpha-4:generate' > > NetBeans: JAVA_HOME=/opt/jdk1.6.0_03/jre > > + Error stacktraces are turned on. > > Scanning for projects... > > Downloading: > > >http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetyp... > > [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- > > archetype-plugin:pom:2.0-alpha-4' from repository central (http:// > > repo1.maven.org/maven2): Error transferring file: repo1.maven.org > > Downloading: > > >http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetyp... > > [WARNING] Unable to get resource 'org.apache.maven.plugins:maven- > > archetype-plugin:pom:2.0-alpha-4' from repository central (http:// > > repo1.maven.org/maven2): Error transferring file: repo1.maven.org > > ------------------------------------------------------------------------ > > [ERROR]BUILD ERROR > > ------------------------------------------------------------------------ > > Error building POM (may not be this project's POM). > > > Project ID: org.apache.maven.plugins:maven-archetype-plugin > > > Reason: POM 'org.apache.maven.plugins:maven-archetype-plugin' not > > found in repository: Unable to download the artifact from any > > repository > > > org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4 > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > for project org.apache.maven.plugins:maven-archetype-plugin > > > ------------------------------------------------------------------------ > > Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: Unable to > > build project for plugin 'org.apache.maven.plugins:maven-archetype- > > plugin': POM 'org.apache.maven.plugins:maven-archetype-plugin' not > > found in repository: Unable to download the artifact from any > > repository > > > org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4 > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > for project org.apache.maven.plugins:maven-archetype-plugin > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java: > > 1557) > > 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.InvalidPluginException: Unable to > > build project for plugin 'org.apache.maven.plugins:maven-archetype- > > plugin': POM 'org.apache.maven.plugins:maven-archetype-plugin' not > > found in repository: Unable to download the artifact from any > > repository > > > org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4 > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > for project org.apache.maven.plugins:maven-archetype-plugin > > at > > > > org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java: > > 293) > > at > > > > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java: > > 205) > > at > > > > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java: > > 184) > > at > > > > org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java: > > 1642) > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java: > > 1540) > > ... 15 more > > Caused by: org.apache.maven.project.ProjectBuildingException: POM > > 'org.apache.maven.plugins:maven-archetype-plugin' not found in > > repository: Unable to download the artifact from any repository > > > org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4 > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > for project org.apache.maven.plugins:maven-archetype-plugin > > at > > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java: > > 605) > > at > > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java: > > 251) > > at > > > > org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java: > > 277) > > ... 19 more > > Caused by: > > org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable > > to download the artifact from any repository > > > org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4 > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2) > > > at > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java: > > 228) > > at > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java: > > 90) > > at > > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java: > > 558) > > ... 21 more > > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: > > Unable to download the artifact from any repository > > at > > > > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java: > > 404) > > at > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java: > > 216) > > ... 23 more > > ------------------------------------------------------------------------ > > Total time: < 1 second > > Finished at: Wed Jun 16 16:54:04 GMT+05:30 2010 > > Final Memory: 1M/4M > > ------------------------------------------------------------------------ > > > I don't know what I did wrong. > > Thanks in advance. > > -- > > Akshay > > > -- > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> > <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> > > > > . > > For more options, visit this group at > >http://groups.google.com/group/liftweb?hl=en. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Blog:http://goodstuff.im > Surf the harmonics > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >