jbosstools / m2e-wro4j

m2e connector for WRO4J
Eclipse Public License 2.0
34 stars 12 forks source link

M2E connector for WRO4J

This m2e connector for WRO4J will execute wro4j-maven-plugin:run on Eclipse incremental builds, if a change is detected on css, js, less, json, sass resources under wro4j-maven-plugin's contextFolder (src/main/webapp by default)

In order for m2e-wro4j to be enabled, projects in eclipse must be Maven-enabled with m2e (right-click on project > Configure > Convert to Maven...)

If m2e-wtp is installed and wro4j's target directories are set under ${project.build.directory}/${project.build.finalName/ then the resources will be generated under ${project.build.directory}/m2e-wtp/web-resources/ so they can be picked up and deployed by WTP on the fly.

Requirements

m2e-wro4j 1.1.x requires a minimum of:

m2e-wro4j 1.2.x requires a minimum of:

Installation

M2E connector for WRO4J is available in the Eclipse Marketplace. Drag the following button to your running Eclipse workspace. (⚠️ Requires the Eclipse Marketplace Client)

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Alternatively, in Eclipse:

Build

Open a terminal and execute:

./mvnw clean package

You can then install the generated update site from org.jboss.tools.m2e.wro4j.site/target/site, also zipped as org.jboss.tools.m2e.wro4j.site-<VERSION>-SNAPSHOT-site.zip

License

EPL 2.0, See LICENSE file.