You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stevo Slavić <ss...@gmail.com> on 2008/12/18 12:44:38 UTC
Expand jar dependency in war
Hello all,
Is there a way to have a jar dependency expanded in a war, so that war would
also have all transitive dependencies jar has?
Regards,
Stevo.
Re: Expand jar dependency in war
Posted by Wendy Smoak <ws...@gmail.com>.
2008/12/18 Stevo Slavić <ss...@gmail.com>:
> Yes, all dependency jars (and transitive ones) end up well in WEB-INF/lib.
> Problem is that I need to configure to have some of the dependencies
> expanded in WEB-INF/classes.
Possibly a feature request for the war plugin... until then I'd
probably just use antrun to expand the jar and then delete it from
WEB-INF/lib.
--
Wendy
Re: Expand jar dependency in war
Posted by Stevo Slavić <ss...@gmail.com>.
Yes, all dependency jars (and transitive ones) end up well in WEB-INF/lib.
Problem is that I need to configure to have some of the dependencies
expanded in WEB-INF/classes.
I've found some discussions from before (
http://www.mail-archive.com/users@maven.apache.org/msg71453.html ) but
solution presented there doesn't work for me, as putting jar dependency to
provided scope makes all it's transitive dependencies "provided" too.
Configuring jar transitive dependencies as war dependencies too is not
acceptable (many of them, maintenance nightmare). I've tried configuring
maven dependency plugin to expand jar, and maven war plugin to exclude jar
from packaging, but it didn't work, and even if it did it would also be
maintenance nightmare as in packagingExludes one has to specify full jar
name (wish something like "ArtifactItems" was available for war plugin).
Regards,
Stevo.
2008/12/18 Wendy Smoak <ws...@gmail.com>
> On Thu, Dec 18, 2008 at 4:44 AM, Stevo Slavić <ss...@gmail.com> wrote:
>
> > Is there a way to have a jar dependency expanded in a war, so that war
> would
> > also have all transitive dependencies jar has?
>
> The war should have all its dependency jars and their transitive
> dependencies in WEB-INF/lib.
>
> Is that not happening? Or are you asking for them to be expanded
> under WEB-INF/classes instead?
>
> --
> Wendy
>
Re: Expand jar dependency in war
Posted by Wendy Smoak <ws...@gmail.com>.
On Thu, Dec 18, 2008 at 4:44 AM, Stevo Slavić <ss...@gmail.com> wrote:
> Is there a way to have a jar dependency expanded in a war, so that war would
> also have all transitive dependencies jar has?
The war should have all its dependency jars and their transitive
dependencies in WEB-INF/lib.
Is that not happening? Or are you asking for them to be expanded
under WEB-INF/classes instead?
--
Wendy