4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
maven yui compressor 报错 - ITeye问答
来自 : www.iteye.com/problems/69... 发布时间:2021-03-25
pom.xml:
plugin
groupId net.alchim31.maven /groupId
artifactId yuicompressor-maven-plugin /artifactId
version 1.1 /version
executions
execution
goals
goal compress /goal
/goals
/execution
/executions
configuration
encoding utf8 /encoding
nosuffix true /nosuffix
force true /force
failOnWarning true /failOnWarning
excludes
exclude **/ext/**/**.js /exclude
exclude **/ext/**/**.css /exclude
exclude **/jquery/**.js /exclude
exclude **/js/ux/ux-all.js /exclude
exclude **/css/blueprint/**/**.css /exclude
/excludes
/configuration

cmd:mvn net.alchim31.maven:yuicompressor-maven-plugin:compress -Dmaven.yuicompressor.force=true -Dmaven.yuicompressor.failOnWarning=true -e
运行后报:
[INFO] total input (1720749b) - output (809358b)[47%]
[INFO] nb warnings: 2348, nb errors: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] warnings on YuiCompressorMojo= failure ! (see log)
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: warnings on YuiCompressorMojo= failure ! (see log)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.ja
a:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: warnings on YuiCompressorMojo= failure ! (see log)
at net_alchim31_maven_yuicompressor.MojoSupport.execute(MojoSupport.java:120)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Sun Aug 14 09:59:54 CST 2011
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------

本文链接: http://inalchim.immuno-online.com/view-741808.html

发布于 : 2021-03-25 阅读(0)