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.
m2e-wro4j 1.1.x requires a minimum of:
m2e-wro4j 1.2.x requires a minimum of:
M2E connector for WRO4J is available in the Eclipse Marketplace. Drag the following button to your running Eclipse workspace. (⚠️ Requires the Eclipse Marketplace Client)
Alternatively, in Eclipse:
https://github.com/jbosstools/m2e-wro4j/releases/download/latest/
for CI buildshttps://github.com/jbosstools/m2e-wro4j/releases/download/1.2.1/
for the latest releasehttp://download.jboss.org/jbosstools/updates/m2e-wro4j/
for older (1.1.x) releasesm2e connector for WRO4J
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
EPL 2.0, See LICENSE file.