You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrea Libero Valori <an...@gmail.com> on 2009/05/04 12:36:09 UTC

Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

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]
------------------------------------------------------------------------

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Andrea Libero Valori <an...@gmail.com>.
Solved: it was only that I was giving wrong names for archetypes! ;)
PS sorry for the late reply

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Nick Stolwijk <ni...@gmail.com>.
I am not sure, but when you run as root, doesn't maven take the
settings.xml from /root/.m2/settings.xml and when not as root from
~/.m2/settings.xml. Maybe there is a difference between those files?

Hth,

Nick Stolwijk
~Java Developer~

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



On Tue, May 5, 2009 at 11:58 AM, Andrea Libero Valori
<an...@gmail.com> wrote:
> False alarm, the second build was made without 'sudo'.
> Under root all works correctly. Sorry.
>

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


Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Andrea Libero Valori <an...@gmail.com>.
False alarm, the second build was made without 'sudo'.
Under root all works correctly. Sorry.

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Andrea Libero Valori <an...@gmail.com>.
Update: now root-builds do not work anymore.
first it succesfully created a camel-service-unit
then the "Error transferring file: repo1.maven.org" problem
raised again, but this time under root.
I continue to not understand why:
Here is the mvn commands output:

Thanks again,
Andrea

/* service-unit (successful) */

andrea@martin:~/Programmi/apache-servicemix-3.3/tutorials/3_camel$ sudo mvn
archetype:create -DarchetypeArtifactId=servicemix-camel-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-su
[sudo] password for andrea:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from central

[Various downloads...]
[INFO] BUILD SUCCESSFUL
[...]

/* Now the service-assembly (build error) */

andrea@martin:~/Programmi/apache-servicemix-3.3/tutorials/3_camel$ mvn -e
archetype:create -DarchetypeArtifactId=servicemix-service-assembly
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-camel-sa
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   SMX-Camel :: Tutorial
[INFO]   A Camel based JBI Service Unit
[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(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:172)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1517)
    ... 14 more

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Andrea Libero Valori <an...@gmail.com>.
Thanks for reply,
I omitted that if maven run as a super-user task all works correctly, and so
was with
normal-user runs until a few days ago, when suddenly (and without any
evident cause) maven was no more able to perform builds as a normal-user...
The problem isn't vital, because I can do everything as root, but I'd like
to
know what happened.

Andrea

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

Posted by Nick Stolwijk <ni...@gmail.com>.
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
<an...@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