YUI Compressor Maven Mojo

To compress (Minify + Ofuscate) Javascript files and CSS files (using YUI Compressor from Julien Lecomte) and/or to check Javascript files with jslint.

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.alchim31.maven
ArtifactId

ArtifactId

yuicompressor-maven-plugin
Last Version

Last Version

1.5.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

YUI Compressor Maven Mojo
To compress (Minify + Ofuscate) Javascript files and CSS files (using YUI Compressor from Julien Lecomte) and/or to check Javascript files with jslint.
Project URL

Project URL

http://github.com/davidB/yuicompressor-maven-plugin
Source Code Management

Source Code Management

https://github.com/davidB/yuicompressor-maven-plugin/

Download yuicompressor-maven-plugin

How to add to project

<plugin>
    <groupId>net.alchim31.maven</groupId>
    <artifactId>yuicompressor-maven-plugin</artifactId>
    <version>1.5.1</version>
</plugin>

Dependencies

compile (2)

Group / Artifact Type Version
com.yahoo.platform.yui : yuicompressor jar 2.4.7
org.sonatype.plexus : plexus-build-api jar 0.0.7

provided (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0.4
org.apache.maven : maven-core jar 3.0.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

Project Modules

There are no modules declared in this project.

YUICompressor-maven-plugin

Build Status

Overview

Maven's plugin to compress (minify/obfuscate/aggregate) JavaScript and CSS files using YUI Compressor

Documentation

Full documentation is available under following link: http://davidb.github.com/yuicompressor-maven-plugin/

Summary of the project history can be found in CHANGELOG

Build

  • ./mvnw package : generate jar
  • ./mvnw site : generate the plugin website
  • ./mvnw integration-test : ./mvnw package + run all integration test
  • ./mvnw integration-test -Dinvoker.test=demo01 : run integration test 'demo01' (against all configuration) useful for tuning/debug
  • ./mvnw install : ./mvnw integration-test + publish on local maven repository
  • ./mvnw install -Dmaven.test.skip=true : ./mvnw install` without run of unit test and run of integration test
  • release :
    • gpg --use-agent --armor --detach-sign --output $(mktemp) pom.xml to avoid issue on macosx with gpg signature see [MGPG-59] GPG Plugin: "gpg: signing failed: Inap propriate ioctl for device" - ASF JIRA
    • ./mvnw release:clean && ./mvnw release:prepare && ./mvnw release:perform : to publish on staging repository via plugin
    • ./mvnw release:clean && ./mvnw release:prepare -Darguments="-DskipTests -Dmaven.test.skip=true" && ./mvnw release:perform -Darguments="-DskipTests -Dmaven.test.skip=true" to publish without tests
    • ./mvnw site package source:jar javadoc:jar install:install gpg:sign deploy:deploy changes:announcement-generate -Dmaven.test.skip=true -DperformRelease=true : man ual
    • connect to http://oss.sonatype.org/ close and release the request(about yuicompressor-maven-plugin) in staging repositories
    • browse the updated mvnsite (check version into samples, ...)

Issues

Found a bug? Have an idea? Report it to the issue tracker

Developers

License

This project is available under the Creative Commons GNU LGPL, Version 2.1.

Versions

Version
1.5.1
1.5.0
1.4.0
1.3.3
1.3.2
1.3.0
1.2
1.1
1.0