problem solved. I realized that rediris repo gave me not valid jars.so
I changed my mirror repo and everything worked well.

Thanks
J


On 10/4/06, Javier Leyba <[EMAIL PROTECTED]> wrote:
On 10/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> mvn -U forces updates of plugins. You can discover this (and other
> options) yourself by invoking mvn -h.
>
> And you can certainly install plugins manually by downloading files
> from a Maven repo and copying them into your local Repo in the proper
> directory etc. But its kind of a pain. You might just want to drill
> down into your local repo to find the install plugin (jar and pom) and
> just delete them, and let Maven re-download it.
>


Well, I decided to delete all maven files and do a fresh new install.

I did it. Now, I tried to set a new project (just for test) following
samples and I did:

D:\tempj\pruebamvn>mvn archetype:create -DgroupId=com.mycompany.app -DartifactId
=my-app -e

But I got the error:

-------------------------------
+ Error stacktraces are turned on.
[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:1281)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:381)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:135)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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:324)
        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:225)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
        ... 14 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Oct 04 10:14:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
La sintaxis del comando no es correcta.
----------------------------



My proxy config is right (I guess so):

-----------
<settings>
        <localRepository>d:/maven/repo</localRepository>
        <interactiveMode>true</interactiveMode>
  <proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>172.31.22.1</host>
      <port>8080</port>
    </proxy>
  </proxies>
  <mirrors>
        <mirror>
        <id>rediris.es</id>
        <name>Red IrisMirror of http://repo1.maven.org/maven2/</name>
        <url>http://apache.rediris.es/maven/</url>
        <mirrorOf>central</mirrorOf>
      </mirror>
      <mirror>
                  <id>iBiblio</id>
                  <name>iBiblio plugins repository</name>
                  
<url>http://www.ibiblio.org/maven2/org/apache/maven/plugins/</url>
                  <mirrorOf>central</mirrorOf>
      </mirror>
  </mirrors>
</settings>
-----------------

I'm running java 1.4 in a WinNT.

Why I received this error ? How could I fix it ?




Thanks in advance

J



--
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

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

Reply via email to