Hi Noah,

Thanks for your report. For your experience not to be lost in the big number
of messages on this list (as you already might have seen), I guess it would
be great you file an improvement in the maven tracker:
http://jira.codehaus.org/browse/MNG.

>From here: http://jira.codehaus.org/secure/CreateIssue!default.jspa file an
improvement in the Maven project. Then, in the component/s combobox, select
something like "Documentation - general".

Thanks.
Cheers.

2008/11/19 Noah Levitt <[EMAIL PROTECTED]>

> Hello maven users,
>
> User wsmoak on irc, after helping me to solve this issue, asked me to share
> my little story with you guys.
>
> Basically we have some documentation that is maintained in a wiki, and we
> want to include it in plain text in our software distribution. So I put a
> section in <build> that uses the exec-maven-plugin to run "lynx -dump" on
> the url during the "package" phase, and placed it above the
> maven-assembly-plugin bit that builds the tar.gz so that it ran first and
> would be included in the distro. That worked fine.
>
> Except that we need the build to work if the system doesn't have lynx. So I
> moved the lynx piece to a profile with
>  <activation><file><exists>/usr/bin/lynx</exists></file></activation>.
> However, even though I put the <profiles> section above the <build> section,
> the tar.gz was getting built before lynx -dump ran.
>
> I noticed in the docs that maven 2.1.x has a "prepare-package" phase which
> should solve everything. But I'm stuck on 2.0, so what I did to get around
> this build order problem was to put the .tar.gz assembly piece in a profile
> with a contrived activation that always succeeds (*not* the confusingly
> named <activeByDefault>), and place that profile below the lynx one. That
> seems to work.
>
> So it seems that executions in profiles are executed after those in
> <build>. Perhaps this (or whatever the actual behavior really is) could be
> documented.
>
> Noah
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to