다음과 같이 말할 수 있습니다. 압축 후 집계 할 수 있습니까? 그렇다면, 나는 똑같은 문제가 있었고, 다음과 같이 나와 함께 해결했습니다.
트릭은 출력 파일을 원본이 아닌 대상 dir에 넣는 것처럼 보였습니다. 그렇게하면 집계에서 축소 된 파일을 포함 할 수 있습니다.
이미 압축 된 파일 나는 basedir var.
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*-min.js</exclude>
<exclude>**/*.min.js</exclude>
<exclude>**/*.css</exclude>
</excludes>
<removeIncluded>false</removeIncluded>
<jswarn>false</jswarn>
<aggregations>
<aggregation>
<insertNewLine>true</insertNewLine>
<removeIncluded>false</removeIncluded>
<includes>
<!-- these exist only in target dir. the original was json2.js & bootstrap.tabs.js -->
<include>**/bootstrap-tabs-min.js</include>
<include>**/json2-min.js</include>
<!-- use originals for the ones already minified -->
<include>${basedir}/src/main/webapp/js/backbone-min.js</include>
</includes>
<output>${project.build.directory}/${project.build.finalName}/js/test.js</output>
</aggregation>
</aggregations>
</configuration>
마지막으로 @SquAreRoot에 대한 해결책을 찾았습니까? – Patrick