访问项目:xxx/sss.js xxx/sss.css 同时配合maven插件: compress-maven-plugin结合使用: com.github.eliayng compress-maven-plugin 1.0.0 compile compress ${skipCompress} 50 ${jsOutDir} ${cssOutDir} true true ✓ Download JAR compress-maven-plugin 1.0.2 ✓ With dependencies ✓ Source of compress-maven-plugin ☄ One click! ☄" />
All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Download compress-maven-plugin JAR 1.0.2 with all dependencies


配置监控信息,在web.xml中添加 <filter> <description>拦截获取js与css过滤</description> <filter-name>MergeFilter</filter-name> <filter-class>com.njzxw.filter.MergeFilter</filter-class> <init-param> <!-- js合并输出路径 --> <param-name>jsDir</param-name> <param-value>${js.path}</param-value> </init-param> <init-param> <!-- css合并输出路径 --> <param-name>cssDir</param-name> <param-value>${css.path}</param-value> </init-param> </filter> 同时添加一个合并js\css对应一个merge.xml,最好放置在同级,如: <merge> <group name="sss" > <js path="js/common/common.js" /> <js path="js/common/index.js" /> <css path="css/common/animate.css" /> <css path="css/common/normalize.css" /> </group> </merge> 访问项目:xxx/sss.js xxx/sss.css 同时配合maven插件: compress-maven-plugin结合使用: <plugin> <groupId>com.github.eliayng</groupId> <artifactId>compress-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <phase>compile</phase> <goals> <goal>compress</goal> </goals> </execution> </executions> <configuration> <skip>${skipCompress}</skip> <poolNum>50</poolNum> <jsOutDir>${jsOutDir}</jsOutDir> <cssOutDir>${cssOutDir}</cssOutDir> <!--是否监控编译class文件--> <isCompressClass>true</isCompressClass> <!-- 是否复制资源文件 --> <isResourcesCopy>true</isResourcesCopy> </configuration> </plugin>

Files of the artifact compress-maven-plugin version 1.0.2 from the group com.github.eliayng.

Test

Download compress-maven-plugin (1.0.2)
Artifact compress-maven-plugin
Group com.github.eliayng
Version 1.0.2
Last update 03. August 2017
Tags: maven isresourcescopy eliayng animate common param merge skip njzxw poolnum artifactid plugin execution version normalize cssdir description compile jsdir name path value groupid jsoutdir executions index cssoutdir class init true skipcompress goal compress goals iscompressclass group configuration github phase filter mergefilter
Organization not specified
URL https://github.com/eliayng/compress-maven-plugin
License The Eliayng License, Version 1.0
Dependencies amount 5
Dependencies maven-plugin-api, maven-plugin-annotations, maven-project, yuicompressor, closure-compiler,
There are maybe transitive dependencies!
The newest version!
Show more of this group  Show more artifacts with this name
Show all versions of compress-maven-plugin Show documentation

Please rate this JAR file. Is it a good library?

1 downloads

Source code of compress-maven-plugin version 1.0.2

META-INF
META-INF.META-INF.MANIFEST.MF
com.google.javascript.jscomp
com.google.javascript.jscomp.com.googlescript.jscomp.AbstractCommandLineRunner
com.njzxw.compress_maven_plugin
com.njzxw.compress_maven_plugin.com.njzxw.compress_maven_plugin.CompressAbs
com.njzxw.compress_maven_plugin.com.njzxw.compress_maven_plugin.CompressMojo
com.njzxw.compress_maven_plugin.compressClass
com.njzxw.compress_maven_plugin.compressClass.com.njzxw.compress_maven_plugin.compressClass.CompressClass
com.njzxw.compress_maven_plugin.css
com.njzxw.compress_maven_plugin.css.com.njzxw.compress_maven_plugin.css.CompressCssYuicompress
com.njzxw.compress_maven_plugin.css.com.njzxw.compress_maven_plugin.css.CompressSass
com.njzxw.compress_maven_plugin.html
com.njzxw.compress_maven_plugin.html.com.njzxw.compress_maven_plugin.html.CompressHtml
com.njzxw.compress_maven_plugin.html.com.njzxw.compress_maven_plugin.html.HtmlCompressor
com.njzxw.compress_maven_plugin.js
com.njzxw.compress_maven_plugin.js.com.njzxw.compress_maven_plugin.js.CompressJsYuicompress
com.njzxw.compress_maven_plugin.js.com.njzxw.compress_maven_plugin.js.MyCommandLineRunner
com.njzxw.compress_maven_plugin.merge
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.CompressMerge
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.Css
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.GroupBean
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.Js
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.Marge
com.njzxw.compress_maven_plugin.merge.com.njzxw.compress_maven_plugin.merge.MergeBean
com.njzxw.compress_maven_plugin.util
com.njzxw.compress_maven_plugin.util.com.njzxw.compress_maven_plugin.util.CopyDirectory
com.njzxw.compress_maven_plugin.util.com.njzxw.compress_maven_plugin.util.DynamicCompilerUtil
com.njzxw.compress_maven_plugin.util.com.njzxw.compress_maven_plugin.util.WatchDir
com.njzxw.filter
com.njzxw.filter.com.njzxw.filter.MergeFilter