On Tue, 27 Jul 2004 12:49:18 -0400, Erik Husby <[EMAIL PROTECTED]> wrote:
> For an internal use plugin, I would like my site to include download
> instructions that show the proper Maven command to get the current
> version of the plugin. Since the plugin's project.xml has the current
> version, it seems reasonable that I could have the plugin's index.xml
> have something like:
>
> <source>
> >maven plugin:download -Dversion=${pom.currentVersion}
> -DgroupId=prodinfo-plugin -DartifactId=prodinfo-plugin
> </source>
>
> However, this does not work.
>
> I've also tried $pom.currentVersion as well as $!project.currentVersion
> since that mirrors the $!project.name that is found in the
> maven-xdoc-plugin template index.xml. All I end up with is the text
> ${pom.currentVersion}
>
> What am I missing?
That xdocs aren't scripts.
If you have a look at the xdoc plugin and it's templates, you'll see
that these templates are used to generate xdoc files from the
project.xml.
You could do something similar in your plugin.
--
http://www.multitask.com.au/people/dion/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]