2015-09-07 122 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" 
    } 
}