We are doing exactly this. Our assembly is configured in a parent of a
multi-module build, but not attached to a phase because of issues with
assemblies and reactor builds. Assembly configuration is:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<descriptors>
<descriptor>src/main/assembly/create-distro.xml
</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>target/site</outputDirectory>
</configuration>
Our index.apt.vm has link to the release:
Release available at {{
http://somehostname/someproject${project.version}.tar.gz}}
And we run mvn package assembly:assembly site-deploy after a release has
been made.
Kalle
On Feb 12, 2008 6:10 AM, reviewer1000 reviewer1000 <[EMAIL PROTECTED]>
wrote:
> Hi,
> I'd be grateful for your help with the following.
>
> I'm able to automatically generate a site.
> I'm able to create a zipped archive of my release jars.
>
> I would now like the site to link to this archive so users can download
> the latest release of my library. I don't know how to do this. Do I need to
> modify the site source documents? Can I attach the site command to building
> the release assembly?
>
> Thanks in advance
> Richie
>
>
>
>
> ___________________________________________________________
> Support the World Aids Awareness campaign this month with Yahoo! For Good
> http://uk.promotions.yahoo.com/forgood/
>