You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nikolay Rychkov <ni...@gmail.com> on 2012/05/14 16:35:23 UTC

maven-shade-plugin transform resource files

Hello I am working on jetty embedded application and use maven shade
plugin. The problem is that I want to compress js, css, and html static
files before shade plugin pack it to single jar. I wrote program that can
do all I want in single directory. How to force plugin to pack treated by
my program files?

Re: maven-shade-plugin transform resource files

Posted by Nikolay Rychkov <ni...@gmail.com>.
I use jetty embedded. War plugin is not applicable

2012/5/14 Karl Heinz Marbaise <kh...@gmx.de>

> Hi,
>
>  Hello I am working on jetty embedded application and use maven shade
>> plugin. The problem is that I want to compress js, css, and html static
>> files before shade plugin pack it to single jar. I wrote program that can
>> do all I want in single directory. How to force plugin to pack treated by
>> my program files?
>>
> That sounds like the wrong way cause you have a war archive which is the
> default to distribute into servlet engines like jetty etc.
>
> So why not using the war plugin ?
>
> You can js compressor plugins (yu...compressor exists, i can't remember
> the exact name)...and add the results to the war configuration...
>
> Ah found it:
> http://alchim.sourceforge.net/**yuicompressor-maven-plugin/**index.html<http://alchim.sourceforge.net/yuicompressor-maven-plugin/index.html>
>
> Kind regards
> Karl-Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl-Heinz Marbaise        ICQ#: 135949029
> Hauptstrasse 177                         USt.IdNr: DE191347579
> 52146 Würselen                           http://www.soebes.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven-shade-plugin transform resource files

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,
> Hello I am working on jetty embedded application and use maven shade
> plugin. The problem is that I want to compress js, css, and html static
> files before shade plugin pack it to single jar. I wrote program that can
> do all I want in single directory. How to force plugin to pack treated by
> my program files?
That sounds like the wrong way cause you have a war archive which is the 
default to distribute into servlet engines like jetty etc.

So why not using the war plugin ?

You can js compressor plugins (yu...compressor exists, i can't remember 
the exact name)...and add the results to the war configuration...

Ah found it:
http://alchim.sourceforge.net/yuicompressor-maven-plugin/index.html

Kind regards
Karl-Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org