davidB / yuicompressor-maven-plugin

maven's plugin to compress (Minify / Ofuscate / Aggregate) Javascript files and CSS files using YUI Compressor
http://davidb.github.io/yuicompressor-maven-plugin/
GNU Lesser General Public License v2.1
122 stars 48 forks source link

Compressor gets stuck in Warning Loop on Win7 #61

Open Benxamin opened 11 years ago

Benxamin commented 11 years ago

But setting the "jswarn" option to "false" avoids the issue.

Here's the YUI excerpt from our pom.xml:

        <plugin>
            <groupId>net.alchim31.maven</groupId>
            <artifactId>yuicompressor-maven-plugin</artifactId>
            <version>1.1</version>
            <executions>
                <execution>
                    <goals>
                        <goal>compress</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <excludes>
                    <exclude>**/ckeditor/**/*.js</exclude>
                    <exclude>**/ckeditor/**/*.css</exclude>
                    <exclude>**/angular/**/*.js</exclude>
                    <exclude>**/*.min.js</exclude>
                </excludes>
                <!--<sourceDirectory>src/main/webapp/legacy/stylesheet</sourceDirectory>-->
                <linebreakpos>-1</linebreakpos>
                <jswarn>true</jswarn>
                <suffix>.min</suffix>
                <aggregations>
                    <aggregation>
                        <output>target/perfext/legacy/stylesheet/external.min.css</output>
                        <!-- files to include, path relative to output's directory or absolute path-->
                        <!--inputDir>base directory for non absolute includes, default to parent dir of output</inputDir-->
                        <includes>
                            <include>normalize.min.css</include>
                            <include>colors.min.css</include>
                            <include>typography.min.css</include>
                            <include>layout.min.css</include>
                            <include>navigation.min.css</include>
                            <include>icefaces.min.css</include>
                            <include>base.min.css</include>
                            <include>forms.min.css</include>
                            <include>popups.min.css</include>
                            <include>pagination.min.css</include>
                            <include>ui.dynatree.min.css</include>
                            <include>usersearch.min.css</include>
                            <include>spellCheck.min.css</include>
                            <include>timeoutWarningPopup.min.css</include>
                            <include>admintools.min.css</include>
                        </includes>
                        <!-- files to exclude, path relative to output's directory-->
                        <!--
                        <excludes>
                            <exclude>**/cache-configuration.xml</exclude>
                            <exclude>**/persistence.xml</exclude>
                            <exclude>**/p42-ds.xml</exclude>
                        </excludes>
                        -->

                    </aggregation>
                    <aggregation>
                        <output>target/perfext/legacy/js/external.min.js</output>
                        <!-- files to include, path relative to output's directory or absolute path-->
                        <!--inputDir>base directory for non absolute includes, default to parent dir of output</inputDir-->
                        <includes>
                            <include>jquery-1.8.3.min.js</include>
                            <include>jquery-ui-1.9.2.custom.min.js</include>
                            <include>jquery.blockUI-1.0.min.js</include>
                            <include>jquery.hoverintent.min.js</include>
                            <include>html5shiv.min.js</include>
                            <include>main.min.js</include>
                            <include>jquery.dynatree.min.js</include>
                            <include>jquery.accordion.min.js</include>
                            <include>jquery.treeview.min.js</include>
                            <include>menu.min.js</include>
                            <include>toggle.min.js</include>
                            <include>rollover.min.js</include>
                            <include>modalWindow.min.js</include>
                            <include>idleTimeout.min.js</include>
                            <include>formchecker.min.js</include>
                            <include>cookieinfo.min.js</include>
                            <include>AC_RunActiveContent.min.js</include>
                            <include>autoSave.min.js</include>
                        </includes>
                        <!-- files to exclude, path relative to output's directory -->
                        <!--
                        <excludes>
                            <exclude>**/cache-configuration.xml</exclude>
                            <exclude>**/persistence.xml</exclude>
                            <exclude>**/p42-ds.xml</exclude>
                        </excludes>
                        -->
                    </aggregation>
                    <aggregation>
                        <output>target/perfext/legacy/js/adv-reports.min.js</output>
                        <includes>
                            <include>jquery.template.min.js</include>
                            <include>jquery.typewatch.min.js</include>
                            <include>highcharts.min.js</include>
                            <include>json2.min.js</include>
                            <include>date.extensions.min.js</include>
                            <include>reports.min.js</include>
                        </includes>
                    </aggregation>
                </aggregations>
            </configuration>
        </plugin>