wro4j maven plugin

The purpose of this project is to reduce the number of requests needed to load a page and the amount of data to transfer to clients, achieving drastic improvement of loading times. The resources can be benefit also from minification and compression.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

ro.isdc.wro4j
ArtifactId

ArtifactId

wro4j-maven-plugin
Last Version

Last Version

1.10.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

wro4j maven plugin
The purpose of this project is to reduce the number of requests needed to load a page and the amount of data to transfer to clients, achieving drastic improvement of loading times. The resources can be benefit also from minification and compression.

Download wro4j-maven-plugin

How to add to project

<plugin>
    <groupId>ro.isdc.wro4j</groupId>
    <artifactId>wro4j-maven-plugin</artifactId>
    <version>1.10.1</version>
</plugin>

Dependencies

compile (10)

Group / Artifact Type Version
ro.isdc.wro4j : wro4j-core jar 1.10.1
ro.isdc.wro4j : wro4j-extensions jar 1.10.1
javax.servlet : javax.servlet-api jar 4.0.1
org.apache.maven : maven-plugin-api jar 3.6.3
org.mockito : mockito-core jar 3.6.0
org.apache.maven : maven-artifact jar 3.6.3
org.apache.maven : maven-core jar 3.6.3
org.sonatype.plexus : plexus-build-api jar 0.0.7
org.slf4j : slf4j-log4j12 Optional jar 1.7.30
org.slf4j : slf4j-api jar 1.7.30

test (2)

Group / Artifact Type Version
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

Web Resource Optimizer for Java

Join the chat at https://gitter.im/wro4j/wro4j Build Status Coverage Status Maven Central Stories in Ready

wro4j is a free and Open Source Java project which will help you to easily improve your web application page loading time. It can help you to keep your static resources (js & css) well organized, merge & minify them at run-time (using a simple filter) or build-time (using maven plugin) and has a dozen of features you may find useful when dealing with web resources.

Getting Started

In order to get started with wro4j, you have to follow only 3 simple steps.

Step 1: Add WroFilter to web.xml

<filter>
	<filter-name>WebResourceOptimizer</filter-name>
	<filter-class>ro.isdc.wro.http.WroFilter</filter-class>
</filter>
		 
<filter-mapping>
	<filter-name>WebResourceOptimizer</filter-name>
	<url-pattern>/wro/*</url-pattern>
</filter-mapping>

Step 2: Create wro.xml

<groups xmlns="http://www.isdc.ro/wro">
	<group name="all">
		<css>/asset/*.css</css>
		<js>/asset/*.js</js>
	</group>
</groups> 		

Step 3: Use optimized resources

<html>
  <head>
	<title>Web Page using wro4j</title>
	<link rel="stylesheet" type="text/css" href="/wro/all.css" />
	<script type="text/javascript" src="/wro/all.js"/>
  </head>
<body>

</body>
</html>		

Documentation

The documentation for this project is located here

Issues

Found a bug? Report it to the issue tracker

Feedback

If you have any questions or suggestions, please feel free to post a comment to the discussion group

Follow me on Twitter.

License

This project is available under the Apache License, Version 2.0.

ro.isdc.wro4j

Wro4j

Versions

Version
1.10.1
1.10.0
1.9.0
1.8.0
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.9
1.4.8.1
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.3.0-rc1
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0