|
29 | 29 | <parent> |
30 | 30 | <groupId>org.glassfish</groupId> |
31 | 31 | <artifactId>mojarra-parent</artifactId> |
32 | | - <version>4.0.1-SNAPSHOT</version> |
| 32 | + <version>4.0.0-SNAPSHOT</version> |
33 | 33 | </parent> |
34 | 34 |
|
35 | 35 | <artifactId>jakarta.faces</artifactId> |
|
207 | 207 | </resources> |
208 | 208 | <pluginManagement> |
209 | 209 | <plugins> |
210 | | - <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
211 | | - <plugin> |
212 | | - <groupId>org.eclipse.m2e</groupId> |
213 | | - <artifactId>lifecycle-mapping</artifactId> |
214 | | - <version>1.0.0</version> |
215 | | - <configuration> |
216 | | - <lifecycleMappingMetadata> |
217 | | - <pluginExecutions> |
218 | | - <pluginExecution> |
219 | | - <pluginExecutionFilter> |
220 | | - <groupId>net.alchim31.maven</groupId> |
221 | | - <artifactId>yuicompressor-maven-plugin</artifactId> |
222 | | - <versionRange>[1.5,)</versionRange> |
223 | | - <goals> |
224 | | - <goal>compress</goal> |
225 | | - </goals> |
226 | | - </pluginExecutionFilter> |
227 | | - <action> |
228 | | - <execute> |
229 | | - <runOnIncremental>false</runOnIncremental> |
230 | | - </execute> |
231 | | - </action> |
232 | | - </pluginExecution> |
233 | | - </pluginExecutions> |
234 | | - </lifecycleMappingMetadata> |
235 | | - </configuration> |
236 | | - </plugin> |
237 | 210 | </plugins> |
238 | 211 | </pluginManagement> |
239 | 212 | <plugins> |
240 | 213 |
|
241 | 214 | <!-- ### C O M P R E S S / M I N I F Y faces.js ### --> |
| 215 | + <!-- https://blutorange.github.io/closure-compiler-maven-plugin/minify-mojo.html --> |
242 | 216 | <plugin> |
243 | | - <groupId>net.alchim31.maven</groupId> |
244 | | - <artifactId>yuicompressor-maven-plugin</artifactId> |
245 | | - <version>1.5.1</version> |
| 217 | + <groupId>com.github.blutorange</groupId> |
| 218 | + <artifactId>closure-compiler-maven-plugin</artifactId> |
| 219 | + <version>2.23.0</version> |
246 | 220 | <executions> |
| 221 | + <!-- Process all files in the "includes" directory individually--> |
247 | 222 | <execution> |
248 | 223 | <id>minify-faces-js</id> |
249 | 224 | <phase>generate-sources</phase> |
250 | 225 | <goals> |
251 | | - <goal>compress</goal> |
| 226 | + <goal>minify</goal> |
252 | 227 | </goals> |
253 | 228 | <configuration> |
254 | | - <nosuffix>true</nosuffix> |
255 | | - <preProcessAggregates>true</preProcessAggregates> |
256 | | - <aggregations> |
257 | | - <aggregation> |
258 | | - <includes> |
259 | | - <include>${project.basedir}/src/main/resources/META-INF/resources/jakarta.faces/faces-uncompressed.js</include> |
260 | | - </includes> |
261 | | - <output>${project.build.directory}/generated-resources/yui/faces.js</output> |
262 | | - </aggregation> |
263 | | - </aggregations> |
| 229 | + <encoding>UTF-8</encoding> |
| 230 | + <!-- Base configuration for all executions (bundles) --> |
| 231 | + <baseSourceDir>${project.basedir}/src/main/resources/META-INF/resources/</baseSourceDir> |
| 232 | + <baseTargetDir>${project.build.directory}/generated-resources/minified/META-INF/resources/</baseTargetDir> |
| 233 | + <sourceDir>jakarta.faces</sourceDir> |
| 234 | + <targetDir>jakarta.faces</targetDir> |
264 | 235 | <includes> |
265 | | - <include>*.js</include> |
| 236 | + <include>faces-uncompressed.js</include> |
266 | 237 | </includes> |
267 | | - <sourceDirectory>${project.build.directory}/generated-resources/yui</sourceDirectory> |
268 | | - <outputDirectory>${project.build.directory}/generated-resources/yui/META-INF/resources/jakarta.faces/</outputDirectory> |
| 238 | + <outputFilename>#{path}/faces.js</outputFilename> |
| 239 | + <skipMerge>true</skipMerge> |
| 240 | + <closureLanguageOut>ECMASCRIPT5_STRICT</closureLanguageOut> |
269 | 241 | </configuration> |
270 | 242 | </execution> |
271 | 243 | </executions> |
|
287 | 259 | <configuration> |
288 | 260 | <resources> |
289 | 261 | <resource> |
290 | | - <directory>${project.build.directory}/generated-resources/yui</directory> |
| 262 | + <directory>${project.build.directory}/generated-resources/minified</directory> |
291 | 263 | </resource> |
292 | 264 | </resources> |
293 | 265 | </configuration> |
|
0 commit comments