1
내 목표는 특정 디렉토리 내 특정 자바 스크립트 파일 만 압축하는 것입니다.하지만 플러그인은 여전히 모든 자바 스크립트 파일을 압축하려고 시도하는 전체 디렉토리 구조를 여전히 가로 지르고 있습니다. 나는 단지 $ {BASEDIR}/SRC/메인/웹 애플리케이션/JS/분석/응용 프로그램에 있습니다 만 압축하는 JS 파일을 찾을 것으로 기대하고 있습니다yuicompressor-maven-plugin은 exclude/include 옵션에서 내 정보를 무시하는 것 같습니다.
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<aggregations>
<aggregation>
<insertNewLine>true</insertNewLine>
<output>${project.build.directory}/${project.build.finalName}/js/analytics/all.js</output>
<inputDir>${basedir}/src/main/webapp/js/analytics/app</inputDir>
<includes>
<include>${basedir}/src/main/webapp/js/analytics/app/application.js</include>
</includes>
<excludes>
<exclude>all-js-min.js</exclude>
</excludes>
</aggregation>
</aggregations>
</configuration>
</plugin>
: 여기처럼 내 치어는 모습입니다 application.js는 내가 특별히 포함시킨 유일한 파일이기 때문에. 또한 all-js-min.js를 압축하려고 시도합니다.
include/exclude 옵션이 무시 된 것 같습니다. 어떤 아이디어가 잘못 될 수 있습니까?