Thank you fred, I have no problems changing plugins. This will  hopefully
take care of minification and aggregation.

I am also using handlebars templates which I would like to  precompile as
part of the build process, however I imagine that wil require a custom
connector unless you know of any that can process a nodejs script. either
way, thank you for your help.
On Apr 2, 2012 6:42 AM, "Fred Bricon" <[email protected]> wrote:

> Your best solution would be to write a m2e connector that would
> execute yui-compressor-maven and refresh the output directory.
>
> If you're not attached to  yui-compressor-maven, you can switch to using
> wro4j-maven-plugin (http://code.google.com/p/wro4j/wiki/MavenPlugin)
> which support YUI compression (
> http://code.google.com/p/wro4j/wiki/MavenPluginWithYuiOrGoogleClosure)
> and already has a m2e connector (allowing on-the-fly minification) :
> https://github.com/jbosstools/m2e-wro4j
>
> You can check a test project using wro4j here :
> https://github.com/jbosstools/m2e-wro4j/blob/master/org.jboss.tools.m2e.wro4j.tests/projects/p1/pom.xml
>
> If wro4j-maven-plugin is not an option, then
> https://github.com/jbosstools/m2e-wro4j can be used as a basis to write
> a yui-compressor-maven m2e connector
>
> Regards,
>
> Fred Bricon
>
>
>
>
> On Mon, Apr 2, 2012 at 12:30 PM, Anthony DePalma <[email protected]>wrote:
>
>> Hello,
>>
>> I am trying to get my environment setup using Eclipse Indigo, Maven, and
>> Tomcat through WTP but am running into several problems with the
>> configuration details.
>>
>> The app has a lot of javascript that needs to managed by the build
>> process. I have to concatenate js files, minify them, and process some
>> through a nodejs script. In short, I need a lot of work done in the
>> process-resources phase but I am having trouble getting that to work with
>> WTP.
>>
>> For the minify plugin I use the yui-compressor-maven plugin bound to the
>> process-resources phase, and in the maven-war plugin I declare the files as
>> webResources. However this doesn't seem to work with incremental changes. I
>> used the strategy found here:
>> http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01669.html to output
>> the concatenated files in the m2e-wtp/web-resources directory, which almost
>> works except my server is constantly throwing errors about the files in
>> that folder being out of synch.
>>
>> Does anyone know how I can get the process-resource phase to work with
>> incremental changes and wtp? In short I want to be able to modify a
>> javascript file, and on save I would like it to be concatenated and have
>> the changes picked up by wtp automatically.
>>
>> If wtp is the wrong direction, should I look towards another way to get
>> this working?
>>
>> _______________________________________________
>> m2e-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>>
>
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to