RE: Artifact problem on vista

2007-11-20 Thread David Florance
This won't help you much (because I don't already found a solution /
workaround) but I have a problem which can be linked to yours. I use an
archiva server. When I package my projects with a PC on Windows XP (mine
or one of my dev team), everything works OK but when my leader try with
it's laptop on Windows Vista, maven is not able to download artifact. I
also have the same problem with a PC on Windows Server 2003 R2.

The log of archiva says that the server has received the request but
can't perform it ... Quite strange...
I'm gonna try all the tests without antivirus / firewall / ...

David.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: mercredi 21 novembre 2007 00:59
To: Maven Users List
Subject: Re: Artifact problem on vista


Unfortunately, you've exhausted my personal list of things to check when
Maven does not work. Based on what you've said, it seems to be something
in Vista that is causing you problems, but since I don't run Vista, I'm
not much help.

Perhaps someone else on Vista who does not have these problems will
reply with how they got it working. And if/when you solve the problem,
please do reply back with instructions for other people.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> Nope ... just a normal wifi router/firewall and my xp laptop works ok
>
> Toby
>
> - Original Message 
> From: Wayne Fay <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 10:52:55 PM
> Subject: Re: Artifact problem on vista
>
> Are you perhaps behind an Internet proxy of some kind? If so, you must

> configure things in settings.xml. This is documented on the site 
> and/or Wiki.
>
> Wayne
>
> On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> > ok good point Wayne! I've disabled the windows firewall and 
> > antivirus
>  but
> > i'm still having no luck:
> >
> > C:\Users\toby\workspace>mvn -DgroupId=com.test -DartifactId=test -X
>  -U
> > archetype
> > :create
> > + Error stacktraces are turned on.
> > Maven version: 2.0.7
> > Java version: 1.6.0_03
> > OS name: "windows vista" version: "6.0" arch: "x86"
> > [DEBUG] Building Maven user-level plugin registry from: 
> > 'C:\Users\toby\.m2\plugi n-registry.xml'
> > [DEBUG] Building Maven global-level plugin registry from:
'c:\Program
> > Files\Java
> > \maven-2.0.7\bin\..\conf\plugin-registry.xml'
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> > [INFO] org.apache.maven.plugins: checking for updates from central
> > [DEBUG] repository metadata for: 'org.apache.maven.plugins' could
not
>  be
> > found o
> > n repository: central
> > [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [INFO]

> > org.codehaus.mojo: checking for updates from central [DEBUG] 
> > repository metadata for: 'org.codehaus.mojo' could not be
>  found on
> > repos
> > itory: central
> > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
>  checking
> > for up
> > dates from central
> > [DEBUG] repository metadata for: 'artifact 
> > org.apache.maven.plugins:maven-archet
> > ype-plugin' could not be found on repository: central [DEBUG] 
> > maven-archetype-plugin: using locally installed snapshot [DEBUG] 
> > Artifact not found - using stub model: Unable to determine
>  the
> > latest ve
> > rsion
> >
> >   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
> >
> >
> > [DEBUG] Using defaults for missing POM
> > org.apache.maven.plugins:maven-archetype-
> > plugin:pom:LATEST
> > [DEBUG] maven-archetype-plugin: using locally installed snapshot 
> > [DEBUG] Artifact not found - using stub model: Unable to determine
>  the
> > release v
> > ersion
> >
> >   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
> >
> >
> > [DEBUG] Using defaults for missing POM
> > org.apache.maven.plugins:maven-archetype-
> > plugin:pom:RELEASE
> > [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]
> >
&g

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Unfortunately, you've exhausted my personal list of things to check
when Maven does not work. Based on what you've said, it seems to be
something in Vista that is causing you problems, but since I don't run
Vista, I'm not much help.

Perhaps someone else on Vista who does not have these problems will
reply with how they got it working. And if/when you solve the problem,
please do reply back with instructions for other people.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> Nope ... just a normal wifi router/firewall and my xp laptop works ok
>
> Toby
>
> - Original Message 
> From: Wayne Fay <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 10:52:55 PM
> Subject: Re: Artifact problem on vista
>
> Are you perhaps behind an Internet proxy of some kind? If so, you must
> configure things in settings.xml. This is documented on the site
> and/or Wiki.
>
> Wayne
>
> On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> > ok good point Wayne! I've disabled the windows firewall and antivirus
>  but
> > i'm still having no luck:
> >
> > C:\Users\toby\workspace>mvn -DgroupId=com.test -DartifactId=test -X
>  -U
> > archetype
> > :create
> > + Error stacktraces are turned on.
> > Maven version: 2.0.7
> > Java version: 1.6.0_03
> > OS name: "windows vista" version: "6.0" arch: "x86"
> > [DEBUG] Building Maven user-level plugin registry from:
> > 'C:\Users\toby\.m2\plugi
> > n-registry.xml'
> > [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
> > Files\Java
> > \maven-2.0.7\bin\..\conf\plugin-registry.xml'
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> > [INFO] org.apache.maven.plugins: checking for updates from central
> > [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
>  be
> > found o
> > n repository: central
> > [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> > [INFO] org.codehaus.mojo: checking for updates from central
> > [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
>  found on
> > repos
> > itory: central
> > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
>  checking
> > for up
> > dates from central
> > [DEBUG] repository metadata for: 'artifact
> > org.apache.maven.plugins:maven-archet
> > ype-plugin' could not be found on repository: central
> > [DEBUG] maven-archetype-plugin: using locally installed snapshot
> > [DEBUG] Artifact not found - using stub model: Unable to determine
>  the
> > latest ve
> > rsion
> >
> >   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
> >
> >
> > [DEBUG] Using defaults for missing POM
> > org.apache.maven.plugins:maven-archetype-
> > plugin:pom:LATEST
> > [DEBUG] maven-archetype-plugin: using locally installed snapshot
> > [DEBUG] Artifact not found - using stub model: Unable to determine
>  the
> > release v
> > ersion
> >
> >   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
> >
> >
> > [DEBUG] Using defaults for missing POM
> > org.apache.maven.plugins:maven-archetype-
> > plugin:pom:RELEASE
> > [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]
> >
>  
> > [DEBUG] 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.

RE: Artifact problem on vista

2007-11-20 Thread Sean Hennessy
complete command line you are using?

similar problems in past were due missing mvn option
-DarchetypeGroupId=org.apache.maven.archetypes

log suggests it is trying to match GroupID of org.apache.maven.plugins
instead of org.apache.maven.archetypes??

Sean


-Original Message-
From: Toby Hobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2007 3:00 PM
To: Maven Users List
Subject: Re: Artifact problem on vista


Nope ... just a normal wifi router/firewall and my xp laptop works ok

Toby

- Original Message 
From: Wayne Fay <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 20 November, 2007 10:52:55 PM
Subject: Re: Artifact problem on vista

Are you perhaps behind an Internet proxy of some kind? If so, you must 
configure things in settings.xml. This is documented on the site and/or Wiki.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> ok good point Wayne! I've disabled the windows firewall and antivirus
 but
> i'm still having no luck:
>
> C:\Users\toby\workspace>mvn -DgroupId=com.test -DartifactId=test -X
 -U
> archetype
> :create
> + Error stacktraces are turned on.
> Maven version: 2.0.7
> Java version: 1.6.0_03
> OS name: "windows vista" version: "6.0" arch: "x86"
> [DEBUG] Building Maven user-level plugin registry from:
> 'C:\Users\toby\.m2\plugi n-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
> Files\Java
> \maven-2.0.7\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> [INFO] org.apache.maven.plugins: checking for updates from central
> [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
 be
> found o
> n repository: central
> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [INFO]
> org.codehaus.mojo: checking for updates from central [DEBUG]
> repository metadata for: 'org.codehaus.mojo' could not be
 found on
> repos
> itory: central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
 checking
> for up
> dates from central
> [DEBUG] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-archet
> ype-plugin' could not be found on repository: central
> [DEBUG] maven-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine
 the
> latest ve
> rsion
>
>   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-archetype-
> plugin:pom:LATEST
> [DEBUG] maven-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine
 the
> release v
> ersion
>
>   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-archetype-
> plugin:pom:RELEASE
> [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]
>
 
> [DEBUG] 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(DelegatingMethodAc

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
Nope ... just a normal wifi router/firewall and my xp laptop works ok

Toby

- Original Message 
From: Wayne Fay <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 20 November, 2007 10:52:55 PM
Subject: Re: Artifact problem on vista

Are you perhaps behind an Internet proxy of some kind? If so, you must
configure things in settings.xml. This is documented on the site
and/or Wiki.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> ok good point Wayne! I've disabled the windows firewall and antivirus
 but
> i'm still having no luck:
>
> C:\Users\toby\workspace>mvn -DgroupId=com.test -DartifactId=test -X
 -U
> archetype
> :create
> + Error stacktraces are turned on.
> Maven version: 2.0.7
> Java version: 1.6.0_03
> OS name: "windows vista" version: "6.0" arch: "x86"
> [DEBUG] Building Maven user-level plugin registry from:
> 'C:\Users\toby\.m2\plugi
> n-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'c:\Program
> Files\Java
> \maven-2.0.7\bin\..\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> [INFO] org.apache.maven.plugins: checking for updates from central
> [DEBUG] repository metadata for: 'org.apache.maven.plugins' could not
 be
> found o
> n repository: central
> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> [INFO] org.codehaus.mojo: checking for updates from central
> [DEBUG] repository metadata for: 'org.codehaus.mojo' could not be
 found on
> repos
> itory: central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
 checking
> for up
> dates from central
> [DEBUG] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-archet
> ype-plugin' could not be found on repository: central
> [DEBUG] maven-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine
 the
> latest ve
> rsion
>
>   org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-archetype-
> plugin:pom:LATEST
> [DEBUG] maven-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine
 the
> release v
> ersion
>
>   org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-archetype-
> plugin:pom:RELEASE
> [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]
>
 
> [DEBUG] 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.ver

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
rsionManager.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 22:41:53 GMT 2007
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
>
> C:\Users\toby\workspace>
>
> - Original Message 
> From: Wayne Fay <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 10:07:03 PM
> Subject: Re: Artifact problem on vista
>
> (Eclipse uses javaw.exe) != (Maven uses java.exe). It is very possible
>  that javaw.exe would be allowed while java.exe is blocked by your
>  firewall etc software.
>
> I'm still not convinced you are able to download artifacts from
>  Central. If you can dig into ~/.m2 and find some files named *.jar, then I
>  might change my mind.
>
> Wayne
>
> On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> > Sorry ... I mean that the JDK executable is able to pass through the
>  vista
> > firewall, I'll try disabling AVG etc.
> >
> > - Original Message 
> > From: Wayne Fay <[EMAIL PROTECTED]>
> > To: Maven Users List 
> > Sent: Tuesday, 20 November, 2007 9:39:46 PM
> > Subject: Re: Artifact problem on vista
> >
> > "the eclipse update works ok" -- what (exactly) do you mean? How does
> > Eclipse working == "no firewall problems"?
> >
> > In addition to the Vista firewall, what antivirus software are you
> > running? A few people have posted here very frustrated by things only
> > to discover that McAfee or something similar was the root of their
> > troubles. Disable *all* such software and try again.
> >
> > Also, try running with -U to force an update of artifacts from repos.
> > The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
> > delete ~/.m2) and try again from scratch.
> >
> > Wayne
> >
> > On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> > >
> > > It seems there are no firewall problems because the eclipse update
> >  works ok
> > > ... also I can't even get a simple mvn archetype:create to work
> > >
> > > I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
> >  as well
> > > but still no luck :-(
> > >
> > >
> > > Toby Hobson wrote:
> > > >
> > > > 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
> > > >
> >
> 

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
ok good point Wayne! I've disabled the windows firewall and antivirus but i'm 
still having no luck:

C:\Users\toby\workspace>mvn -DgroupId=com.test -DartifactId=test -X -U archetype
:create
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_03
OS name: "windows vista" version: "6.0" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Users\toby\.m2\plugi
n-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'c:\Program Files\Java
\maven-2.0.7\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[INFO] org.apache.maven.plugins: checking for updates from central
[DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be found o
n repository: central
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[INFO] org.codehaus.mojo: checking for updates from central
[DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found on repos
itory: central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from central
[DEBUG] repository metadata for: 'artifact org.apache.maven.plugins:maven-archet
ype-plugin' could not be found on repository: central
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the latest ve
rsion

  org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the release v
ersion

  org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-archetype-
plugin:pom:RELEASE
[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] 
[DEBUG] 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 22:41:53 GMT 2007
[INFO] Final Memory: 1M/4M
[INFO] 

C:\Users\toby\workspace>

- Original Message ----
From: Wayne Fay <

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
(Eclipse uses javaw.exe) != (Maven uses java.exe). It is very possible that 
javaw.exe would be allowed while java.exe is blocked by your firewall etc 
software.

I'm still not convinced you are able to download artifacts from Central. If you 
can dig into ~/.m2 and find some files named *.jar, then I might change my mind.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> Sorry ... I mean that the JDK executable is able to pass through the vista
> firewall, I'll try disabling AVG etc.
> 
> - Original Message 
> From: Wayne Fay <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 9:39:46 PM
> Subject: Re: Artifact problem on vista
> 
> "the eclipse update works ok" -- what (exactly) do you mean? How does
> Eclipse working == "no firewall problems"?
> 
> In addition to the Vista firewall, what antivirus software are you
> running? A few people have posted here very frustrated by things only
> to discover that McAfee or something similar was the root of their
> troubles. Disable *all* such software and try again.
> 
> Also, try running with -U to force an update of artifacts from repos.
> The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
> delete ~/.m2) and try again from scratch.
> 
> Wayne
> 
> On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> >
> > It seems there are no firewall problems because the eclipse update
>  works ok
> > ... also I can't even get a simple mvn archetype:create to work
> >
> > I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
>  as well
> > but still no luck :-(
> >
> >
> > Toby Hobson wrote:
> > >
> > > 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)
&

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
Try mvn -X -U ... and see what comes shows up in the debug output.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> ok .. it seems that maven is downloading stuff - i deleted .m2 and the next
> time i ran mvn it downloaded the maven-metadata-central.xml file
>
> It still doesn't work though :-(
>
> - Original Message 
> From: Toby Hobson <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 9:43:07 PM
> Subject: Re: Artifact problem on vista
>
> Sorry ... I mean that the JDK executable is able to pass through the
>  vista firewall, I'll try disabling AVG etc.
>
> - Original Message 
> From: Wayne Fay <[EMAIL PROTECTED]>
> To: Maven Users List 
> Sent: Tuesday, 20 November, 2007 9:39:46 PM
> Subject: Re: Artifact problem on vista
>
> "the eclipse update works ok" -- what (exactly) do you mean? How does
> Eclipse working == "no firewall problems"?
>
> In addition to the Vista firewall, what antivirus software are you
> running? A few people have posted here very frustrated by things only
> to discover that McAfee or something similar was the root of their
> troubles. Disable *all* such software and try again.
>
> Also, try running with -U to force an update of artifacts from repos.
> The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
> delete ~/.m2) and try again from scratch.
>
> Wayne
>
> On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
> >
> > It seems there are no firewall problems because the eclipse update
>  works ok
> > ... also I can't even get a simple mvn archetype:create to work
> >
> > I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
>  as well
> > but still no luck :-(
> >
> >
> > Toby Hobson wrote:
> > >
> > > 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
> > > sor

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
ok .. it seems that maven is downloading stuff - i deleted .m2 and the next 
time i ran mvn it downloaded the maven-metadata-central.xml file

It still doesn't work though :-(

- Original Message 
From: Toby Hobson <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 20 November, 2007 9:43:07 PM
Subject: Re: Artifact problem on vista

Sorry ... I mean that the JDK executable is able to pass through the
 vista firewall, I'll try disabling AVG etc.

- Original Message 
From: Wayne Fay <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 20 November, 2007 9:39:46 PM
Subject: Re: Artifact problem on vista

"the eclipse update works ok" -- what (exactly) do you mean? How does
Eclipse working == "no firewall problems"?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
>
> It seems there are no firewall problems because the eclipse update
 works ok
> ... also I can't even get a simple mvn archetype:create to work
>
> I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
 as well
> but still no luck :-(
>
>
> Toby Hobson wrote:
> >
> > 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
> >  

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson
Sorry ... I mean that the JDK executable is able to pass through the vista 
firewall, I'll try disabling AVG etc.

- Original Message 
From: Wayne Fay <[EMAIL PROTECTED]>
To: Maven Users List 
Sent: Tuesday, 20 November, 2007 9:39:46 PM
Subject: Re: Artifact problem on vista

"the eclipse update works ok" -- what (exactly) do you mean? How does
Eclipse working == "no firewall problems"?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
>
> It seems there are no firewall problems because the eclipse update
 works ok
> ... also I can't even get a simple mvn archetype:create to work
>
> I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder
 as well
> but still no luck :-(
>
>
> Toby Hobson wrote:
> >
> > 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
> > inManage

Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
"the eclipse update works ok" -- what (exactly) do you mean? How does
Eclipse working == "no firewall problems"?

In addition to the Vista firewall, what antivirus software are you
running? A few people have posted here very frustrated by things only
to discover that McAfee or something similar was the root of their
troubles. Disable *all* such software and try again.

Also, try running with -U to force an update of artifacts from repos.
The final step is to rename the ~/.m2 directory to ~/.m2x (or simply
delete ~/.m2) and try again from scratch.

Wayne

On 11/20/07, Toby Hobson <[EMAIL PROTECTED]> wrote:
>
> It seems there are no firewall problems because the eclipse update works ok
> ... also I can't even get a simple mvn archetype:create to work
>
> I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder as well
> but still no luck :-(
>
>
> Toby Hobson wrote:
> >
> > 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
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Artifact-problem-on-vista-tf4843900s177.html#a13866146
> Sent from the Maven - Users m

Re: Artifact problem on vista

2007-11-20 Thread Toby Hobson

It seems there are no firewall problems because the eclipse update works ok
... also I can't even get a simple mvn archetype:create to work

I've copied the settings.xml from maven-2.0.7\conf to my .m2 folder as well
but still no luck :-(


Toby Hobson wrote:
> 
> 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
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Artifact-problem-on-vista-tf4843900s177.html#a13866146
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Artifact problem on vista

2007-11-20 Thread Wayne Fay
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: users@maven.apache.org
> 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]



RE: Artifact problem on vista

2007-11-20 Thread Sean Hennessy
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: users@maven.apache.org
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]