Lee Theobald [https://community.jboss.org/people/Leesy] created the discussion

"[m2e-wro4j] Anyone Have A Example Project?"

To view the discussion, visit: https://community.jboss.org/message/743943#743943

--------------------------------------------------------------
HI all,

I've been trying to get m2e-wro4j working this morning but I'm not having much 
luck.  Does anyone have an example project with it working so that I can try it 
in my version of Eclipse.  I'm wondering if I'm missing a prerequisite.

I've looked at the blog bost found  
https://community.jboss.org/community/tools/blog/2012/01/17/css-and-js-minification-using-eclipse-maven-and-wro4j
 here but it's not helping much.  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.  
But try as I might, my files never get combined into the resources I am 
expecting.  I get a m2e-wtp folder in my target directory but it only contains 
a META-INF folder.

Can anyone think of anything I might have missed?  Here's a snapshot of my POM 
setup.

<plugin>
  <groupId>ro.isdc.wro4j</groupId>
  <artifactId>wro4j-maven-plugin</artifactId>
  <version>${version.wro4j}</version>
  <executions>
    <execution>
      <phase>compile</phase>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
    
<destinationFolder>${project.build.directory}/${project.build.finalName}/includes/</destinationFolder>
    
<jsDestinationFolder>${project.build.directory}/${project.build.finalName}/includes/js/</jsDestinationFolder>
    
<cssDestinationFolder>${project.build.directory}/${project.build.finalName}/includes/css/</cssDestinationFolder>
  </configuration>
</plugin>


Wro4j.xml in my WEB-INF looks like:

<?xml version="1.0" encoding="UTF-8"?>
<groups xmlns="http://www.isdc.ro/wro";>

  <!-- Main application styles -->
  <group name="style">
    <css>/includes/css/appstoolbar.css</css>
    <css>/includes/less/oomixins.less</css>
    <css>/includes/less/variables.less</css>
    <css>/includes/less/base.less</css>
    <css>/includes/less/ie6.less</css>
    <css>/includes/less/ie7.less</css>
  </group>

  <group name="scripts">
    <js>/includes/js/common.js</js>
  </group>

</groups>


Any help will be greatly appreciated.  For now I'll stick to manually running 
the wro4j maven goal  :(
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/743943#743943]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to