2015-09-07 95 views
0

当我创建Grails 1.3.7应用程序的战争。我看到一个错误。错误执行脚本战争

Welcome to Grails 1.3.7 - http://grails.org/ 
Licensed under Apache Standard License 2.0 
Grails home is set to: /home/remya/Documents/Grails-1.3.7/ 
Base Directory: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1 
Resolving dependencies... 
Dependencies resolved in 22923ms. 
Running script /home/remya/Documents/Grails-1.3.7/scripts/War.groovy 
Environment set to production 
    [groovyc] Compiling 1 source file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/classes 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work 
    [gspc] Compiling 334 GSP files for package [medical] to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/classes 
    [gspc] Compiling 41 GSP files for package [springSecurityUi] to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/classes 
    [gspc] Compiling 4 GSP files for package [mail] to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/classes 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage 
Building WAR file ... 
    [copy] Copying 1052 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage 
    [copy] Copied 93 empty directories to 4 empty directories under /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/ui-performance-1.2.2 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/ui-performance-1.2.2 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/rest-0.7 
    [copy] Copying 32 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/rest-0.7 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/spring-security-ui-0.1.2 
    [copy] Copying 57 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/spring-security-ui-0.1.2 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/mail-1.0 
    [copy] Copying 32 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/mail-1.0 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/jquery-1.7.1 
    [copy] Copying 2 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/jquery-1.7.1 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/jquery-ui-1.8.15 
    [copy] Copying 79 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/jquery-ui-1.8.15 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/famfamfam-1.0 
    [copy] Copying 1000 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/plugins/famfamfam-1.0 
    [copy] Copying 348 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/grails-app 
    [copy] Copied 62 empty directories to 4 empty directories under /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/grails-app 
    [copy] Copying 400 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/classes 
    [copy] Copying 5023 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/classes 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/spring 
    [copy] Copying 2 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/classes 
    [copy] Copied 2 empty directories to 1 empty directory under /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/classes 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/templates/scaffolding 
    [copy] Copying 6 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/templates/scaffolding 
    [copy] Copying 90 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/lib 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF 
    [delete] Deleting: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/resources/web.xml 
    [copy] Copying 4 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/lib 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/lib 
[propertyfile] Updating property file: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/classes/application.properties 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/ui-performance-1.2.2 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/ui-performance-1.2.2 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/rest-0.7 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/rest-0.7 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-ui-0.1.2 
    [copy] Copying 43 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-ui-0.1.2 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/mail-1.0 
    [copy] Copying 7 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/mail-1.0 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/hibernate-1.3.7 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/hibernate-1.3.7 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/jquery-1.7.1 
    [copy] Copying 2 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/jquery-1.7.1 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/jquery-ui-1.8.15 
    [copy] Copying 2 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/jquery-ui-1.8.15 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/famfamfam-1.0 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/famfamfam-1.0 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-acl-1.1 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-acl-1.1 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/aws-1.2.12.2 
    [copy] Copying 1 file to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/aws-1.2.12.2 
    [mkdir] Created dir: /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-core-1.2.7.2 
    [copy] Copying 3 files to /home/remya/Documents/workspace-ggts-3.6.0.RELEASE/purpleHealthV1/target/work/stage/WEB-INF/plugins/spring-security-core-1.2.7.2 
UiPerformance: versioning resources ... 
java.lang.ArrayIndexOutOfBoundsException: 3 

回答

0

我刚刚看到了同样的错误,这从ResourceVersionHelper.groovy,在UI性能插件(1.2.2版)第67行的结果。它似乎试图从SVN文件中找到导致错误的版本号(可能是错误的格式?)。

File entries = new File(basedir, '.svn/entries') 
    if (entries.exists()) { 
     return entries.text.split('\n')[3].trim() //this throws the error 
    } 

上面这行代码中,首先查找在配置文件中的闭合通过提供这种封闭Config.groovy中获得的版本号,因此,不再试图从查找版本号这个神秘的文件。

下面是什么固定的错误 - Config.groovy中的封闭返回版本“1.2.2”

uiperformance { 
    determineVersion = { 
     "1.2.2" 
    } 
}