maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: mvn archetype:create
Date Wed, 19 Sep 2007 18:41:40 GMT
Try specifying -U on the commandline to force Maven to look for updates.

Wayne

On 9/19/07, Dmitri Pissarenko <dmitri.pissarenko@gmail.com> wrote:
> Hello!
>
> Thanks for your answer!
>
> > A question: why are you fighting the default location of maven (where the
> > repo goes, what repo's it contacts, ...).
>
> Ad location of local repo: Because I'm on a Windows machine and
> default location is located in a cryptic directory like "C:\Dokumente
> und Einstellungen\user\.m2\repository".
>
> Ad repos: Because I tried to run mvn without Dremoterepositories and
> it didn't work, so I thought to tell mvn explicitly where it should
> look for the plugins.
>
> * * *
>
> Now I commented out the line with definition of local repo.
>
> When I run this command
>
> mvn --debug archetype:create
> -DgroupId=at.silverstrike.control.presentation.eclipsercp.commanderconsole -Dart
> ifactId=commander-console
>
> I'm still getting this error:
>
> + Error stacktraces are turned on.
> Maven version: 2.0.7
> Java version: 1.5.0_06
> OS name: "windows xp" version: "5.1" arch: "x86"
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und Einste
> llungen\user\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'C:\Programme\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
> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> [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(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        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: Wed Sep 19 20:36:11 CEST 2007
> [INFO] Final Memory: 1M/2M
> [INFO] ------------------------------------------------------------------------
>
> What else can I do?
>
> TIA
>
> Dmitri Pissarenko
> --
> http://www.xing.com/profile/Dmitri_Pissarenko
> http://dapissarenko.blogspot.com/
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message