2013-08-05 63 views
2

在运行grails test-app -integration我得到这些错误:Grails的测试包错误

2013-08-05 10:57:34,701 [WARN ] 
(main)grails.app.resourceMappers.org.grails.plugin.resource.BundleResourceMapper - 
Cannot create a bundle from resource [/less/dummy.css], 
the content type [application/octet-stream] is not supported. Set the resource to exclude bundle mapper. 

(这就是印所有的CSS/JS /更少...资源)

什么意思。我该如何解决这个问题?


这是我的MIME类型设置:

grails.mime.types = [ 
    all:   '*/*', 
    atom:   'application/atom+xml', 
    css:   'text/css', 
    less:   'text/less', 
    csv:   'text/csv', 
    form:   'application/x-www-form-urlencoded', 
    html:   ['text/html','application/xhtml+xml'], 
    js:   'text/javascript', 
    coffee:  'text/coffeescript', 
    json:   ['application/json', 'text/json'], 
    multipartForm: 'multipart/form-data', 
    rss:   'application/rss+xml', 
    text:   'text/plain', 
    xml:   ['text/xml', 'application/xml'] 
] 

// What URL patterns should be processed by the resources plugin 
grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*'] 
+0

你有没有在你的config.groovy(grails.mime.types)中定义的任何非标准MIME类型? –

+0

@dunnless我已更新我的帖子以显示配置。我添加了更少和咖啡标记,但在警告中没有任何区别。 – matcauthon

回答

3

一些挖它出现在Spring框架,已在3.2.2版本(JIRA

得到解决是一个问题 MockServletContext

Grails 2.2.4仍然在Spring Framework 3.1.x上,我不确定Grails 2.3是否已经升级到3.2.x版本。

所以基本上这是一个令人讨厌但无害的问题,它将在未来的Grails版本中消失。