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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to