Hi, I have my js and css in my webapp directory and for a long time I had been blissfully assuming that everything was nicely minified in my deployed wars. So, I was very shocked to notice that although yui compressor appears to be doing its magic during the compile stage, its output is overwritten by mvn during the war stage. Grrrrrrr.
I believe that this is not a problem if js css are put in the resources directory? but that seems less than ideal. I played around a bit with the pom and got to this working solution: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>${project.build.directory}/minimized</ directory> <targetPath>/</targetPath> <filtering>false</filtering> </resource> </webResources> </configuration> </plugin> <plugin> <groupId>net.sf.alchim</groupId> <artifactId>yuicompressor-maven-plugin</artifactId> <executions> <execution> <goals> <goal>compress</goal> </goals> </execution> </executions> <configuration> <webappDirectory>${project.build.directory}/minimized</ webappDirectory> <nosuffix>true</nosuffix> </configuration> </plugin> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---