<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    [m2e-wro4j] Anyone Have A Example Project?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/Leesy">Lee Theobald</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/message/743943#743943">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>HI all,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've been trying to get m2e-wro4j working this morning but I'm not having much luck.&#160; Does anyone have an example project with it working so that I can try it in my version of Eclipse.&#160; I'm wondering if I'm missing a prerequisite.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've looked at the blog bost found <a class="" href="https://community.jboss.org/community/tools/blog/2012/01/17/css-and-js-minification-using-eclipse-maven-and-wro4j">here</a> but it's not helping much.&#160; I believe m2e-wro4j is installed correctly as I do get the option to add a wro4j plugin when I hit CTRL + Space in my POM.&#160; But try as I might, my files never get combined into the resources I am expecting.&#160; I get a m2e-wtp folder in my target directory but it only contains a META-INF folder.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can anyone think of anything I might have missed?&#160; Here's a snapshot of my POM setup.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;plugin&gt;</span>
&#160; <span class="jive-xml-tag">&lt;groupId&gt;</span>ro.isdc.wro4j<span class="jive-xml-tag">&lt;/groupId&gt;</span>
&#160; <span class="jive-xml-tag">&lt;artifactId&gt;</span>wro4j-maven-plugin<span class="jive-xml-tag">&lt;/artifactId&gt;</span>
&#160; <span class="jive-xml-tag">&lt;version&gt;</span>${version.wro4j}<span class="jive-xml-tag">&lt;/version&gt;</span>
&#160; <span class="jive-xml-tag">&lt;executions&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;execution&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;phase&gt;</span>compile<span class="jive-xml-tag">&lt;/phase&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;goals&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;goal&gt;</span>run<span class="jive-xml-tag">&lt;/goal&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/goals&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/execution&gt;</span>
&#160; <span class="jive-xml-tag">&lt;/executions&gt;</span>
&#160; <span class="jive-xml-tag">&lt;configuration&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;wroManagerFactory&gt;</span>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory<span class="jive-xml-tag">&lt;/wroManagerFactory&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;destinationFolder&gt;</span>${project.build.directory}/${project.build.finalName}/includes/<span class="jive-xml-tag">&lt;/destinationFolder&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;jsDestinationFolder&gt;</span>${project.build.directory}/${project.build.finalName}/includes/js/<span class="jive-xml-tag">&lt;/jsDestinationFolder&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;cssDestinationFolder&gt;</span>${project.build.directory}/${project.build.finalName}/includes/css/<span class="jive-xml-tag">&lt;/cssDestinationFolder&gt;</span>
&#160; <span class="jive-xml-tag">&lt;/configuration&gt;</span>
<span class="jive-xml-tag">&lt;/plugin&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Wro4j.xml in my WEB-INF looks like:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span class="jive-xml-tag"><span>&lt;groups xmlns="</span><a class="jive-link-external-small" href="http://www.isdc.ro/wro" target="_blank">http://www.isdc.ro/wro</a><span>"&gt;</span></span>

&#160; <span class="jive-xml-comment">&lt;!-- Main application styles --&gt;</span>
&#160; <span class="jive-xml-tag">&lt;group name="style"&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/css/appstoolbar.css<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/less/oomixins.less<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/less/variables.less<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/less/base.less<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/less/ie6.less<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;css&gt;</span>/includes/less/ie7.less<span class="jive-xml-tag">&lt;/css&gt;</span>
&#160; <span class="jive-xml-tag">&lt;/group&gt;</span>

&#160; <span class="jive-xml-tag">&lt;group name="scripts"&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;js&gt;</span>/includes/js/common.js<span class="jive-xml-tag">&lt;/js&gt;</span>
&#160; <span class="jive-xml-tag">&lt;/group&gt;</span>

<span class="jive-xml-tag">&lt;/groups&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any help will be greatly appreciated.&#160; For now I'll stick to manually running the wro4j maven goal <span> :( </span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/743943#743943">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>