Maybe you need the help of someone more accurate on these things than me ;)

2006/3/9, Jochen Wiedmann <[EMAIL PROTECTED]>:
>
> Hi, Raphaël,
>
> first of all, thanks for your reply.
>
> On 3/9/06, Piéroni Raphaël <[EMAIL PROTECTED]> wrote:
>
> > First use assembly plugin to generate the zip tgz files _and_ declare
> them
> > as associated artifacts (with classifier)
> > (sorry can't remember how)
>
> I have read about the classifier stuff. If I get the classifier right,
> then it is simply a modifier for the generated files name. Examples:
> The -source, which is used by the source plugin, or the -bin, and
> -src, which are used by the assembly plugin. In particular, I cannot
> declare a classifier in my POM, the exception being when referencing
> dependencies. Likewise, the assembly plugins documentation doesn't
> refer to classifier. And the terms
>
>   maven "associated artifact"
>   maven "associated artifacts"
>
> do not mean very much to Google?


IIRC the assembly plugin create an associated artifact (= a classifier) with
the name <yourartifact>-<version>-<nameoftheassembly> and when you
install/deploy the main artifact, all the associated artifact are also
installed/deployed

Yep the way to refer to a classifier artifact in a dependent project is by
using dependencies


> Second refer to the classifiered dependency in the pom of the war project
>
> I understand that this would pull the dependency into my repository.
> But how do I refer to it? Note, that I want the war plugin to put the
> dependency into another location than WEB-INF/lib where it wouldn't be
> accessible to others.


That may be an issue to the solution i proposed.
If you want to copy the classifier dependency in another directory than lib,
maybe you need to create an ant snipplet to be called by the antrun plugin
and which copy your dependency from the local repository to the directory of
your choice

Regards,

Raphaël

Regards,
>
> Jochen
>
> --
> Whenever you find yourself on the side of the
> majority, it is time to pause and reflect.
> (Mark Twain)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to