I'm hoping to work on the docs today, though I should be able to cut
and paste it from this thread soon :)

Exclusions are for trimming out bad dependencies down the chain - not
what you want here. You really want scope="provided" on the
dependency, but now that you mention it I may not be honouring that in
Ant (and should be). Please let me know if this is the case.

Other alternatives:
- I think you can create a file set that contains a fileset and an
excludes pattern, which might help
- you can split it into 2 dependencies tasks, and only construct the
fileset from the second.

HTH,
Brett

On 6/24/05, Kris Bravo <[EMAIL PROTECTED]> wrote:
> Does it handle excludes? I have projects which depend on servlet or j2ee
> libraries but don't want to pack them in the application archive. I
> noticed this:
> 
> <exclusion groupId="junit" artifactId="junit"/>
> 
> in the example build.xml; however, it's inside a dependency tag. Is it
> intended to subtract entries from the filesetId or is it for some other
> purpose? It looks a little out of place where it's at:
> 
>     <dependency groupId="org.apache.maven.wagon"
> artifactId="wagon-provider-test" version="1.0-alpha-2">
>         <exclusion groupId="junit" artifactId="junit"/>
>       </dependency>
> 
> If you have a doc for the ant task details which I should be looking at
> let me know, but I do appreciate your help. I'm hoping to benefit from the
> repository f(x) in my existing build process until m2 is ready for prime
> time.
> 
> --
> Kris Bravo
> Corridor Software, Inc.
> http://corridor-software.us
> 
> > There is a filesetId attribute you can specify on the dependencies
> > task that you can later use to copy the dependencies without knowing
> > anything special about the repository like its layout.
> >
> > <dependencies filesetId="maven.deps">
> >  ...
> > </dependencies>
> >
> > <copy ... >
> >   <fileset refid="maven.deps" />
> > </copy>
> >
> > - Brett
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to