yookue / prefer-minimum-maven-plugin

Prefer minimum for maven plugin

Home Page:https://mvnrepository.com/artifact/com.yookue.mavenplugin/prefer-minimum-maven-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prefer Minimum Maven Plugin

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 and bar.js under the resource path, there also exists two files named foo.min.css/foo-min.css and bar.min.js/bar-min.js (which may be generated by nodejs csso-cli and terser), 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.

Quickstart

  • Configure maven pom.xml under plugin maven-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>

Document

Requirement

  • jdk 1.8+

License

This project is under the Apache License 2.0

See the NOTICE.txt file for required notices and attributions.

Donation

You like this package? Then donate to Yookue to support the development.

Website

About

Prefer minimum for maven plugin

https://mvnrepository.com/artifact/com.yookue.mavenplugin/prefer-minimum-maven-plugin

License:Apache License 2.0


Languages

Language:Java 100.0%