I'm actually considering changing the groupId of the plugin back to 
org.codehaus.mojo (only for the plugin not the other stuff). So that executing 
goals directly from the cli do the right thing.

Or maybe the relocate bits would work too...  Will have a look. 

--jason


-----Original Message-----
From: Dirk Jaeckel <[EMAIL PROTECTED]>

Date: Sat, 25 Aug 2007 19:08:17 
To:[email protected]
Subject: [mojo-user] Solution: Trouble executing groovy script via "mvn 
groovy:execute"

Hi Jason!

I found a workaround that seems to fix the problem for me. When I remove the 
following lines
from:

~/.m2/repository/org/codehaus/mojo/maven-metadata-central.xml

-------- lines to be removed ------
    <plugin>
      <name>Groovy Maven Plugin</name>
      <prefix>groovy</prefix>
      <artifactId>groovy-maven-plugin</artifactId>
    </plugin>
-------- lines to be removed ------

then the groovy-prefix is resolved to 
org.codehaus.mojo.groovy:groovy-maven-plugin:1.0-beta-2
instead of
org.codehaus.mojo:groovy-maven-plugin:1.0-alpha-2

The Problem is that maven-metadata-central.xml is restored with the wrong 
values when I
remove it. And everyone else is getting the wrong version too.

Is it possible to have that fixed in the repository?


Regards,
Dirk


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to