On Tue, 15 Mar 2005, Chad Woolley wrote:

Hi Chad,

> Thanks for the response Kenney.
>
> I thought that plugin:install could only be used from within a plugin
> project itself?  How can I use this goal against a downloaded plugin jar?

Seems I made a mistake - plugin:install is indeed intended to be used from
within the plugin project itself.

I think something else is the problem.. When you just specify
a dependency of type 'plugin' in your project.xml, it should automatically
install it. Maybe it's only available in the second run, but it works.
I've tested it myself:

$ cat maven.xml
<project xmlns:j="jelly:core">
  <goal name="updateplugins">
    <j:set var="type" value="plugin"/>
    <j:set var="groupId" value="emma"/>
    <j:set var="artifactId" value="maven-emma-plugin"/>
    <j:set var="version" value="0.4"/>
    <attainGoal name="plugin:download"/>
  </goal>
</project>

$ maven -Dmaven.repo.remote=http://www.neonics.com/maven/
# (my 'local remote' repository)

build:start:

updateplugins:
plugin:download-artifact:
    [echo] repo is 'http://www.neonics.com/maven/'
    [echo] trying to download
http://www.neonics.com/maven//emma/plugins/maven-emma-plugin-0.4.jar
9K downloaded

plugin:download:
    [delete] /home/forge/.maven/plugins not found.
    [copy] Copying 1 file to /home/forge/local/maven/plugins
BUILD SUCCESSFUL
Total time: 3 seconds
Finished at: Tue Mar 15 17:57:01 CET 2005


$ maven -g |grep emma
[emma]                              ( NO DEFAULT GOAL )
  emma  ........................... Generate test coverage reports with
EMMA.
[maven-emma-plugin]                 ( NO DEFAULT GOAL )

<snip/>


Do you get similar output?
My guess is that you have some file permission issue on your repository.
Please check if
${maven.local.home}/repository/emma/plugins/maven-emma-plugin-0.4.jar
exists.. (it is also installed in ${maven.home}/plugins/emma/.....)

Greetings,

        Kenney

>
> -- Chad
>
> Kenney Westerhof <[EMAIL PROTECTED]> wrote:
> >
> > I think you need to use <attainGoal name="plugin:install"/>.
> > plugin:download will only download it, not make it available for use.
> > Or does that have side-effects you don't want?
> >
> > Greetings,
> >
> >     Kenney
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

Reply via email to