You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pulkit Singhal <pu...@gmail.com> on 2010/02/05 20:55:45 UTC
How to place exclusions on a plugin directly
Hello Everyone,
I want to places the <exclusions> tag insidea <plugin> to remove the
dependencies that are referenced by that plugin's plugin.pom file
retrieved from maven repository.
I know that I can place <exclusions> under the <dependencies> tag but
here I want to exclude files from the plugin and not a dependency
nested under it.
Anyone know how to do this or if it can be done at all?
- Pulkit
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to place exclusions on a plugin directly
Posted by Anders Hammar <an...@hammar.net>.
If you explain your use case and why you want to do this, we could try to
find a workaround (or possibly the correct Maven way of doing things). A
plugin has a dependency for a reason, and that's normally because it needs
it.
/Anders
On Mon, Feb 8, 2010 at 14:57, Jo Eduardo <jo...@gmail.com> wrote:
> Hi Pulkit,
>
> AFAIK there's no way to exclude the files in the jar. (
> http://maven.apache.org/guides/mini/guide-configuring-plugins.html)
>
> If you want, you could create your own version of the jar, if its
> allowable.
> Then just use that jar.\
>
> HTH,
> --
> Jo Eduardo
> Twitter: http://twitter.com/joed
>
>
>
> On Sat, Feb 6, 2010 at 3:55 AM, Pulkit Singhal <pulkitsinghal@gmail.com
> >wrote:
>
> > Hello Everyone,
> >
> > I want to places the <exclusions> tag insidea <plugin> to remove the
> > dependencies that are referenced by that plugin's plugin.pom file
> > retrieved from maven repository.
> >
> > I know that I can place <exclusions> under the <dependencies> tag but
> > here I want to exclude files from the plugin and not a dependency
> > nested under it.
> >
> > Anyone know how to do this or if it can be done at all?
> >
> > - Pulkit
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
Re: How to place exclusions on a plugin directly
Posted by Jo Eduardo <jo...@gmail.com>.
Hi Pulkit,
AFAIK there's no way to exclude the files in the jar. (
http://maven.apache.org/guides/mini/guide-configuring-plugins.html)
If you want, you could create your own version of the jar, if its allowable.
Then just use that jar.\
HTH,
--
Jo Eduardo
Twitter: http://twitter.com/joed
On Sat, Feb 6, 2010 at 3:55 AM, Pulkit Singhal <pu...@gmail.com>wrote:
> Hello Everyone,
>
> I want to places the <exclusions> tag insidea <plugin> to remove the
> dependencies that are referenced by that plugin's plugin.pom file
> retrieved from maven repository.
>
> I know that I can place <exclusions> under the <dependencies> tag but
> here I want to exclude files from the plugin and not a dependency
> nested under it.
>
> Anyone know how to do this or if it can be done at all?
>
> - Pulkit
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>