maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Stolwijk <nick.stolw...@gmail.com>
Subject Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted
Date Mon, 04 May 2009 14:41:30 GMT
Have you enabled a proxy inside your browser through which you connect
to the internet? If so, you have to tell maven about this proxy by
enabling it inside the settings.xml. [1]

[1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html#class_proxy

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Mon, May 4, 2009 at 12:36 PM, Andrea Libero Valori
<andrealibero.valori@gmail.com> wrote:
> Hi,
>
> I'm doing apache servicemix tutorials (tutorial 3: Camel) using maven,
> when I run "mvn archetype:create" I get a message saying that an error
> occurred
> transferring data from repo1.maven.org
>
> I have a working internet connection (through which I'm writing this email),
> and I'm able to
> open without any problem the site "repo1.maven.org" from Firefox (through
> which I'm writing this email, too).
> Seems that maven is not able to use the net, but I don't see why: in past
> runs it was able to connect.
> Is that a settings problem?
>
> Thanks in advance,
> Andrea
>
> andrea@martin:~/Programmi/apache-servicemix-3.3/tutorials/3_camel$ mvn
> --version
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_13
> Java home: /home/andrea/Programmi/jdk1.6.0_13/jre
> Default locale: it_IT, platform encoding: UTF-8
> OS name: "linux" version: "2.6.28-11-generic" arch: "i386" Family: "unix"
>
> andrea@martin:~/Programmi/apache-servicemix-3.3/tutorials/3_camel$ mvn
> archetype:create -e -U -DarchetypeArtifactId=servicemix-camel-service-unit
> -DarchetypeGroupId=org.apache.servicemix.tooling
> -DartifactId=tutorial-camel-su
> + 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:1546)
>    at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1786)
>    at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:446)
>    at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:176)
>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>    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(Laandrea@martin:~/Programmi/apache-servicemix-3.3/tutorials/3_camel$
> mvn archetype:create -DarchetypeArtifactId=servicemix-camel-service-unit
> -DarchetypeGroupId=org.apache.servicemix.tooling
> -DartifactId=tutorial-camel-su
> [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] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon May 04 12:19:27 CEST 2009
> [INFO] Final Memory: 1M/65M
> [INFO]
> ------------------------------------------------------------------------
>
> uncher.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:172)
>    at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1517)
>    ... 14 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon May 04 12:24:57 CEST 2009
> [INFO] Final Memory: 1M/65M
> [INFO]
> ------------------------------------------------------------------------
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message