Eclipse Indigo를 M2E와 함께 사용하여 WTP를 사용하여 로컬 웹 응용 프로그램을 배포하고 있습니다. 나는 또한 yui-compressor 플러그인을 사용하고 있는데,이 플러그인은 target 아래에서 전개 된 war 디렉토리에서 잘 작동하는 것처럼 보이지만 Eclipse WTP에서는 작동하지 않는다. 로컬로 개발하고 축소 된 파일을 사용할 수 있도록이 설정을 권장하는 방법이 있습니까?yui 압축기 메이븐 플러그인을 WTP와 함께 사용할 수 있습니까?
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<force>true</force>
<jswarn>false</jswarn>
<linebreakpos>-1</linebreakpos>
<excludes>
<exclude>**/lib/*</exclude>
</excludes>
<aggregations>
<aggregation>
<insertNewLine>true</insertNewLine>
<output>${project.build.directory}/${project.build.finalName}/static/js/script-${timestamp}.min.js</output>
<includes>
<include>**/script/*.js</include>
</includes>
<excludes>
<exclude>**/lib/*</exclude>
</excludes>
</aggregation>
</aggregations>
</configuration>
</plugin>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<versionRange>[1.2,)</versionRange>
<goals>
<goal>compress</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
감사합니다.이 작업을 수행 한 후에 리소스가 웹 리소스 폴더에 저장되고 축소되었음을 알 수 있습니다. 그러나 나는이 일을 점진적으로 할 수는 없다. 비록 yui 플러그인이 어떤 리소스가 저장된 후에 실행할 수 있지만, 빌드를 다시하지 않으면 변경 사항이 웹 리소스 폴더에 푸시되지 않는다. WTP와 함께 사용할 수있는 방법이 있습니까? – user842800