JBoss Community

[m2e-wro4j] Anyone Have A Example Project?

created by Lee Theobald in JBoss Tools - View the full discussion

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 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

Start a new discussion in JBoss Tools at Community