This is an automated email from the ASF dual-hosted git repository.

papegaaij pushed a commit to branch skip-minified-files-in-optimizer
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 90c4467bdf2247dda8b28d6c3356181e47a90a72
Author: Emond Papegaaij <[email protected]>
AuthorDate: Fri Nov 6 08:30:40 2026 +0100

    Stop the resources optimizer from minifying its own minified output
    
    The resources-optimizer-maven-plugin reads its input from target/classes,
    the same directory it writes its .min.js and .min.css files to, and only
    jquery*.js was excluded. A build without clean therefore found the .min
    files of the previous run and minified them again, into *.min.min.js and
    *.min.min.css. For wicket-veil.js this failed the build of
    wicket-extensions: its minified form contains the $jscomp polyfills that
    Closure injects for for...of, and compiling those again redefines their
    @define constants (JSC_NON_CONST_DEFINE). Modules that got past the
    optimizer packaged the doubled files; wicket-core's jar carried nine of
    them.
    
    The optimizer now also excludes **/*.min.js and **/*.min.css. A clean
    build produces the same minified files as before; a second build without
    clean now succeeds and no longer produces *.min.min.* files. Applications
    see no difference, as the released jars are built from a clean tree.
    
    GitHub issue #1832
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 pom.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pom.xml b/pom.xml
index afa5354162..c07252217a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1384,6 +1384,8 @@
                                                        <resourcesSet>
                                                                <excludes>
                                                                        
<exclude>**/jquery*.js</exclude>
+                                                                       
<exclude>**/*.min.js</exclude>
+                                                                       
<exclude>**/*.min.css</exclude>
                                                                </excludes>
                                                        </resourcesSet>
                                                </resourcesSets>

Reply via email to