Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用资产管道插件在Grails中创建War_Grails_Asset Pipeline - Fatal编程技术网

无法使用资产管道插件在Grails中创建War

无法使用资产管道插件在Grails中创建War,grails,asset-pipeline,Grails,Asset Pipeline,我试图包括资产管道插件来管理我的静态资源,在我尝试从我的项目部署war之前,一切都很顺利。我得到以下错误。我正在使用Grails-2.2.4和资产管道:1.9.7 | Error Error executing script RunWar: java.lang.RuntimeException: Property already exists (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) j

我试图包括资产管道插件来管理我的静态资源,在我尝试从我的项目部署war之前,一切都很顺利。我得到以下错误。我正在使用Grails-2.2.4和资产管道:1.9.7

| Error Error executing script RunWar: java.lang.RuntimeException: Property already 

exists (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.RuntimeException: Property already exists
    at org.mozilla.javascript.ScriptableObject.defineProperty(Unknown Source)
    at org.mozilla.javascript.LazilyLoadedCtor.<init>(Unknown Source)
    at org.mozilla.javascript.ScriptRuntime.initStandardObjects(Unknown Source)
    at org.mozilla.javascript.Context.initStandardObjects(Unknown Source)
    at org.mozilla.javascript.Context.initStandardObjects(Unknown Source)
    at org.mozilla.javascript.Context$initStandardObjects.call(Unknown Source)
    at asset.pipeline.processors.UglifyJsProcessor.<init>(UglifyJsProcessor.groovy:54)
    at asset.pipeline.AssetCompiler.compile(AssetCompiler.groovy:39)
    at asset.pipeline.AssetCompiler$compile.call(Unknown Source)
    at _AssetCompile_groovy$_run_closure2.doCall(_AssetCompile_groovy:49)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at _Events$_run_closure1.doCall(_Events.groovy:5)
    at _GrailsWar_groovy$_run_closure2.doCall(_GrailsWar_groovy:43)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at RunWar$_run_closure1.doCall(RunWar.groovy:42)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:591)
    at gant.Gant.executeTargets(Gant.groovy:590)
| Error Error executing script RunWar: java.lang.RuntimeException: Property already exists
|执行脚本RunWar时出错:java.lang.RuntimeException:属性已存在
存在(注意:堆栈跟踪已被筛选。请使用--verbose查看整个跟踪。)
java.lang.RuntimeException:属性已存在
位于org.mozilla.javascript.ScriptableObject.defineProperty(未知源)
位于org.mozilla.javascript.lazlyLoadedctor。(未知来源)
位于org.mozilla.javascript.ScriptRuntime.initStandardObjects(未知源)
位于org.mozilla.javascript.Context.initStandardObjects(未知源)
位于org.mozilla.javascript.Context.initStandardObjects(未知源)
位于org.mozilla.javascript.Context$initStandardObjects.call(未知源)
位于asset.pipeline.processors.UglifyJsProcessor.(UglifyJsProcessor.groovy:54)
位于asset.pipeline.AssetCompiler.compile(AssetCompiler.groovy:39)
位于asset.pipeline.AssetCompiler$compile.call(未知源)
在\u AssetCompile\u groovy$\u run\u closure2.doCall(\u AssetCompile\u groovy:49)
位于org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy:185)
位于org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy)
位于org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
位于org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy:185)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy)上
at\u Events$\u run\u closure1.doCall(\u Events.groovy:5)
在GrailsWar\uGroovy$\uRun\uClosure2.doCall(GrailsWar\uGroovy:43)
位于org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy:185)
位于org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy)
位于org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
位于org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy:185)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy)上
位于org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
在RunWar$\u run\u closure1.doCall(RunWar.groovy:42)
位于org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy:185)
位于org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16\u closure18.doCall(GantBinding.groovy)
位于org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
位于org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy:185)
在org.codehaus.gant.GantBinding$\u initializeGantBinding\u closure5\u closure16.doCall(GantBinding.groovy)上
在gant.gant$\u dispatch\u closure5.doCall(gant.groovy:381)
在gant.gant$\u dispatch\u closure7.doCall(gant.groovy:415)
在gant.gant$\u dispatch\u closure7.doCall(gant.groovy)
在gant.gant.withBuildListeners(gant.groovy:427)
这个$2$withBuildListeners(gant.groovy)
在gant.gant$this$2$withBuildListeners.callCurrent(未知源)
甘特图调度(甘特图groovy:415)
在gant.gant.this$2$dispatch(gant.groovy)
在gant.gant.invokeMethod(gant.groovy)中
在gant.gant.executeTargets(gant.groovy:591)
在gant.gant.executeTargets(gant.groovy:590)
|执行脚本RunWar时出错:java.lang.RuntimeException:属性已存在