Yookue prefer-minimum-maven-plugin is a maven plugin, to filter resources, using minimum files instead of original ones.
For example, if there are two files named
foo.css
andbar.js
under the resource path, there also exists two files namedfoo.min.css
/foo-min.css
andbar.min.js
/bar-min.js
(which may be generated by nodejscsso-cli
andterser
), with this plugin, the files that be packed to the final build jar/war, are the ones which named with.min
/-min
, the original files will not be packed.
- Configure maven
pom.xml
under pluginmaven-resources-plugin
, done
<project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>LATEST</version>
<configuration>
<mavenFilteringHints>
<mavenFilteringHint>preferMinimumResourceFilter</mavenFilteringHint>
</mavenFilteringHints>
</configuration>
<dependencies>
<dependency>
<groupId>com.yookue.mavenplugin</groupId>
<artifactId>prefer-minimum-maven-plugin</artifactId>
<version>LATEST</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
- jdk 1.8+
This project is under the Apache License 2.0
See the NOTICE.txt
file for required notices and attributions.
You like this package? Then donate to Yookue to support the development.
- Yookue: https://yookue.com