Hi all.  I've been playing with the assemby plugin for a bit now, but
not getting it to do what I'd like.  I'll describe what I'd like, and
any help would be great.

I've got a maven module that uses the assembly plugin to construct a
instalation package of some software.  It's just a gzipped tarfile
containing war files and scripts.  I have an assembly descriptor that
builds it up.  This has been working fine.  This gets built nightly
and deployed as a snapshot release, which is used by downstream teams.

When I go to make a proper release, I want to generate release notes.
I'm able to do this with a custom maven plugin, no worries.  I've set
this up in a Profile, and I've updated the POM so it uses this profile
when it makes the release.  I've tested this my manually enabling the
profile, and it works fine.  I want to include the release notes
(which is a single HTML page) in the gzipped tar file.  At the moment,
I'd like the release notes to only be generated when we're curring an
official release.

My question is this: in the doco for the assembly plugin, it looks
like you should be able to provide more than one descriptor (using the
<descriptors> element).  What I'd like to have is

1) The standard descriptor, which is what I have now, and what is used
to make the snapshot release
2) A second descriptor, added by the release Profile, which augments
the existing descriptor by including the release notes.

I have tried updating the plugin config to, in the release profile,
define two descriptors.  But this never works.  It uses either one set
of files (the release proper) or the other (the release notes).

I've tried defining the release notes details as a fragment in its own
module and use descriptors element for the main portion and
descriptorRef for the release notes.  Didn't work.

The only thing that works for me is if I use a single assembly
descriptor, the second a duplication of the first with an additional
file added for the release notes file.  But this isn't ideal, as
duplication is required and could be a potential failure point if a
developer updates one but not the other.

Can I do what I want to do?  If so, what am I doing wrong?

Thanks for any help.
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to