Without knowing anything about it in any detail (I don't run Vista), I
would guess you might need to disable a firewall or grant
Internet-connect privileges to your JDK executables.

Wayne

On 11/20/07, Sean Hennessy <[EMAIL PROTECTED]> wrote:
> Perhaps you might try adding -U option to command line and archetypeGroupId
> also..or simpler maven-archetype-site first?
> C:\Users\toby\workspace>mvn -U -e archetype:create
> -DgroupId=com.mycompany.app -DarchetypeGroupId=org.apache.maven.archetypes
> -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
>
> -----Original Message-----
> From: Toby Hobson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 20, 2007 6:40 AM
> To: [email protected]
> Subject: Artifact problem on vista
>
>
> Hi guys,
>
> I've recently installed Maven 2.0.7 together with jdk 1.6 on Windows Vista
> and I'm having quite a few problems. It seems maven is unable to download
> most of the artifacts I need, for example the following command doesn't
> work:
>
> C:\Users\toby\workspace>mvn -e archetype:create -DgroupId=com.mycompany.app
> -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
>
> I get the following error:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
> exi st or no valid version could be found [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.m aven.plugins:maven-archetype-plugin' does not exist or no
> valid version could be  found
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1286)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:1522)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
> AggregationNeeds(DefaultLifecycleExecutor.java:386)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:138)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.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 p lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
> or no val id version could be found
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
> uginVersion(DefaultPluginVersionManager.java:228)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
> uginVersion(DefaultPluginVersionManager.java:90)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
> inManager.java:166)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
> ultLifecycleExecutor.java:1257)
>         ... 14 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Nov 20 14:35:53 GMT 2007
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> I have installed maven in c:\program files\java\maven-2.0.7
>
> I had no problems using maven with xp so i suspect the problem may be
> something to do with vista's more restrictive permissions. Has anyone else
> come across this problem?
>
> Thanks
>
> Toby
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to