You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Dmitry S. Kravchenko" <di...@mail.ru> on 2008/10/20 10:46:37 UTC

Build error just after install during 5 minutes guide

Hi!

I have installed maven-2.0.9 into C:\Program Files\Apache Software Foundation
Also I have followed instructions 2-7 from here http://maven.apache.org/download.html#Installation

After that mvn --version says this:

D:\Users\Dims\Design\Maven>mvn --version
Maven version: 2.0.9
Java version: 1.6.0_03
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

But the next instruction from 5 minute guide causes an error (I have
supplied -e switch for more details):

D:\Users\Dims\Design\Maven>mvn -e archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
+ 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
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-archetype-plugin' could
not be retrieved from repository: central due to an error: Error transferring file
[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 versi
on could be found
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-a
rchetype-plugin' does not exist or no valid version could be found
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
.java:1303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
cutor.java:1542)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
aultLifecycleExecutor.java:405)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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.ma
ven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
luginVersionManager.java:229)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
luginVersionManager.java:91)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
.java:1274)
        ... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38 seconds
[INFO] Finished at: Mon Oct 20 12:44:21 MSD 2008
[INFO] Final Memory: 12M/64M
[INFO] ------------------------------------------------------------------------



Why? And what to do?

Thanks.


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


Thanks

Posted by "Dmitry S. Kravchenko" <di...@mail.ru>.
Thank you!

I had no proxy, but it was really some network issue. The problem
selfsolved after some time.

Dims.


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


Re: Build error just after install during 5 minutes guide

Posted by Nick Stolwijk <ni...@gmail.com>.
Are you behind a proxy? This error "tells" you, that maven couldn't
find a plugin, which it will try to retrieve from the central
repository. If you are behind a proxy, you cannot retrieve this
plugin, so maven will fail.

To resolve this, take a look at [1] and add a proxy section to your
settings.xml. This file is in your maven directory and in your user
directory.

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

Hth,

Nick Stolwijk
~Java Developer~

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



On Mon, Oct 20, 2008 at 10:46 AM, Dmitry S. Kravchenko <di...@mail.ru> wrote:
> Hi!
>
> I have installed maven-2.0.9 into C:\Program Files\Apache Software Foundation
> Also I have followed instructions 2-7 from here http://maven.apache.org/download.html#Installation
>
> After that mvn --version says this:
>
> D:\Users\Dims\Design\Maven>mvn --version
> Maven version: 2.0.9
> Java version: 1.6.0_03
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> But the next instruction from 5 minute guide causes an error (I have
> supplied -e switch for more details):
>
> D:\Users\Dims\Design\Maven>mvn -e archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> + 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
> [INFO] org.codehaus.mojo: checking for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
> [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-archetype-plugin' could
> not be retrieved from repository: central due to an error: Error transferring file
> [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 versi
> on could be found
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-a
> rchetype-plugin' does not exist or no valid version could be found
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
> .java:1303)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
> cutor.java:1542)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
> aultLifecycleExecutor.java:405)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> :137)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        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.ma
> ven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
>        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
> luginVersionManager.java:229)
>        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultP
> luginVersionManager.java:91)
>        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor
> .java:1274)
>        ... 14 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 38 seconds
> [INFO] Finished at: Mon Oct 20 12:44:21 MSD 2008
> [INFO] Final Memory: 12M/64M
> [INFO] ------------------------------------------------------------------------
>
>
>
> Why? And what to do?
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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