grails失败生成的战争(资产)

时间:2014-12-10 13:49:29

标签: grails deployment war

当我用 grails war commande生成战争时,我有一个奇怪的错误

| Processing File 53 of 1214 - yuiApplication/dial/assets/dial-core.css.
| Error WAR packaging error: /Users/sovlin/IdeaProjects/revelido/grails-app/assets/javascripts/yuiApplication/dial/assets (Is a directory)

我不明白为什么这个文件夹出问题。我检查它,但没有任何怀疑。 我测试 clean-clean 但没有成功。 run-app 命令工作。

StackTrace错误

  战争--stacktrace |处理文件53 of 1214 -   yuiApplication /拨号/资产/拨号core.css。 |错误WAR包装错误:   /用户/ sovlin / IdeaProjects / revelido /的grails-app /资产/ Java脚本/ yuiApplication /拨号/资产   (是目录)|运行脚本war错误错误--stacktrace:   org.codehaus.groovy.grails.cli.ScriptExitException(注意:堆栈跟踪   已被过滤。使用--verbose查看整个跟踪。)   org.codehaus.groovy.grails.cli.ScriptExitException           在_GrailsWar $ _run_closure2.doCall(_GrailsWar.groovy:43)           在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)           at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)           在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)           at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)           在org.codehaus.gant.GantBinding.this $ 4 $ withTargetEvent(GantBinding.groovy)           在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)           at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)           在org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)           at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)           在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)           在战争$ _run_closure1.doCall(War.groovy:38)           在org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)           at org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)           在org.codehaus.gant.GantBinding $ _initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)           at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)           在org.codehaus.gant.GantBinding.this $ 4 $ withTargetEvent(GantBinding.groovy)           在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)           在gant.Gant.withBuildListeners(Gant.groovy:427)           at gant.Gant.this $ 2 $ withBuildListeners(Gant.groovy)           at gant.Gant $ this $ 2 $ withBuildListeners $ 0.callCurrent(Unknown Source)           at gant.Gant $ this $ 2 $ withBuildListeners $ 0.callCurrent(Unknown Source)           在gant.Gant.dispatch(Gant.groovy:415)           在Gant.Gant.this $ 2 $ dispatch(Gant.groovy)           at gant.Gant.invokeMethod(Gant.groovy)           at gant.Gant.executeTargets(Gant.groovy:591)           在gant.Gant.executeTargets(Gant.groovy:590)|运行脚本war错误错误--stacktrace:   org.codehaus.groovy.grails.cli.ScriptExitException

这是我的插件配置

asset-pipeline      2.0.17           --  Asset Pipeline Plugin
cache               1.1.8            --  Cache Plugin
database-migration  1.4.0            --  Grails Database Migration Plugin
hibernate4          4.3.6.1          --  Hibernate 4 for Grails
jquery              1.11.1           --  jQuery for Grails
scaffolding         2.1.2            --  Grails Scaffolding Plugin
spring-security-core2.0-RC4          --  Spring Security Core Plugin
tomcat              8.0.15           --  Apache Tomcat plugin
webxml              1.4.1            --  WebXmlConfig

感谢您的帮助

1 个答案:

答案 0 :(得分:2)

它肯定与一个名为的文件夹有关,就好像它是一个需要处理的文件。但是,Asset-Pipeline应该对此进行更正,并且我已经修改了核心以确保检查并确保文件不是目录。这是在2.0.18发布的