LINUX.ORG.RU

yuicompressor-maven-plugin игнорирует конфигурацию

 


0

1

Пытаюсь сжать js скрипты из 1й из директорий в 1 файл, при этом yuicompressor-maven-plugin игнорирует конфигурацию.

  <build>
        <plugins>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>yuicompressor-maven-plugin</artifactId>
                <version>1.5.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compress</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <nosuffix>true</nosuffix>
                    <aggregations>
                        <aggregation>
                            <insertNewLine>true</insertNewLine>
                            <output>${project.build.directory}/${project.build.finalName}/static/all.js</output>
                            <includes>
                                <include>${basedir}/src/main/webapp/resources/app/*.js</include>
                            </includes>
                            <excludes>
                               <exclude>${basedir}/src/main/webapp/resources/js/*.js</exclude>
                    </excludes>
                        </aggregation>
                    </aggregations>
                </configuration>
            </plugin>

        </plugins>
    </build>

и падает с ошибкой:

[WARNING] ...angular-route.js:line -1:column -1:The symbol onNgViewEnter is declared but is apparently never used.
This code can probably be written in a more compact way.
,currentElement||$element).then(function ---> onNgViewEnter <--- (){if(angular.isDefined(autoScrollExp
[INFO] angular-route.js (35944b) -> angular-route.js (4584b)[12%]
[ERROR] ...angular.js:line 424:column 13:missing ( before function parameters.
	function int(str) {
[ERROR] ...angular.js:line 424:column 13:missing } after function body
	function int(str) {
[ERROR] ...angular.js:line 426:column 1:syntax error
	}
[ERROR] ...angular.js:line 429:column 33:missing ; before statement
	function inherit(parent, extra) {
[ERROR] ...angular.js:line 431:column 1:syntax error
	}
[ERROR] ...angular.js:line 449:column 17:missing ; before statement
	function noop() {}
[ERROR] ...angular.js:line 450:column 6:syntax error
	noop.$inject = [];
[ERROR] ...angular.js:line 10509:column 27:identifier is a reserved word
	  locationObj.$$port = int(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
[ERROR] ...angular.js:line 15921:column 14:identifier is a reserved word
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15921:column 27:illegal character
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15921:column 29:syntax error
	          int((/android (\d+)/.exec(lowercase(($window.navigator || {}).userAgent)) || [])[1]),
[ERROR] ...angular.js:line 15922:column 16:syntax error
	        boxee = /Boxee/i.test(($window.navigator || {}).userAgent),
[ERROR] ...angular.js:line 15923:column 19:syntax error
	        document = $document[0] || {},
[ERROR] ...angular.js:line 15924:column 21:syntax error
	        vendorPrefix,
[ERROR] ...angular.js:line 15925:column 22:syntax error
	        vendorRegex = /^(Moz|webkit|ms)(?=[A-Z])/,
[ERROR] ...angular.js:line 15926:column 20:syntax error
	        bodyStyle = document.body && document.body.style,
[ERROR] ...angular.js:line 15927:column 22:syntax error
	        transitions = false,
[ERROR] ...angular.js:line 15928:column 21:syntax error
	        animations = false,
[ERROR] ...angular.js:line 17203:column 21:identifier is a reserved word
	        tzHour = int(match[9] + match[10]);
[ERROR] ...angular.js:line 17204:column 20:identifier is a reserved word
	        tzMin = int(match[9] + match[11]);
[ERROR] ...angular.js:line 17206:column 32:identifier is a reserved word
	      dateSetter.call(date, int(match[1]), int(match[2]) - 1, int(match[3]));
[ERROR] ...angular.js:line 17207:column 18:identifier is a reserved word
	      var h = int(match[4] || 0) - tzHour;
[ERROR] ...angular.js:line 17208:column 18:identifier is a reserved word
	      var m = int(match[5] || 0) - tzMin;
[ERROR] ...angular.js:line 17209:column 18:identifier is a reserved word
	      var s = int(match[6] || 0);
[ERROR] ...angular.js:line 17226:column 44:identifier is a reserved word
	      date = NUMBER_STRING.test(date) ? int(date) : jsonStringToDate(date);
[ERROR] ...angular.js:line 17419:column 18:identifier is a reserved word
	      limit = int(limit);
[ERROR] ...angular.js:line 21344:column 25:identifier is a reserved word
	        var intVal = int(value);
[ERROR] ...angular.js:line 21364:column 24:identifier is a reserved word
	        minlength = int(value) || 0;
[ERROR] ...angular.js:line 26055:column 11:invalid return
	    return;
[ERROR] ...angular.js:line 26068:column 1:syntax error
	})(window, document);
[ERROR] ...angular.js:line 1:column 0:Compilation produced 30 syntax errors.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.720 s

angular.js находиться в /src/main/webapp/resources/js/


Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.