A while back, it was reported that Javascript files that were overlaid in the web/src/main/overlay directory were not being properly minified as part of the build process.  I'm happy to say that this issue has been addressed in the latest version of the jive-parent-pom for Jive versions 6.0.3.4 and up.  Getting the fixes into your project is easy.

 

The next time you build your project, you should see a message similar to the following:

 

[INFO] ************************************************************************************************************************************************

[INFO] Checking for newer versions of jive-parent-pom...

[INFO] You are currently using version 6.0.3.4-3 of jive-parent-pom.

[INFO] The latest version of jive-parent-pom is 6.0.3.4-4

[WARNING] You are not using the latest version of jive-parent-pom.  It is strongly recommended you update your project POMs to reflect this, as follows:

[WARNING] <parent>

[WARNING]     <groupId>com.jivesoftware.maven</groupId>

[WARNING]     <artifactId>jive-parent-pom</artifactId>

[WARNING]     <version>6.0.3.4-4</version>

[WARNING] </parent>

[INFO] ************************************************************************************************************************************************

 

Just follow the instructions, and modify your root POM's <parent> element to point to the appropriate version. 

 

Before rebuilding your project, however, you'll need to make one more change.  In your /web/pom.xml file, remove the following dependencies, as they are no longer needed:

        <dependency>

            <groupId>com.jivesoftware</groupId>

            <artifactId>yuicompressor</artifactId>

        </dependency>

 

 

        <dependency>

            <groupId>com.jivesoftware</groupId>

            <artifactId>yuicompressor-anttask</artifactId>

        </dependency>

 

 

Once you have made these changes, you can rebuild your project, and note that your overlaid Javascript is once again being properly minified.

 

Please reply if you have any questions about this change.

 

Thanks!