2016-08-17 3 views
0

인라인 플러그인으로 grails 3.1.9 응용 프로그램과 충돌하려고합니다. "java.lang.IllegalStateException : 'C : \ test \ grails_demo \ plugins \ grails_demo_plugin \ build \ libs \ grails_demo_plugin-0.1.jar '을'C : \ test \ grails_demo \ plugins \ grails_demo_plugin \ build \ libs \ grails_demo_plugin-0.1.jar.original ' "로 변경하십시오.Grails 3 war -Inline plugin issues

왜 파일 이름을 바꿀 수 있는지 잘 모르겠습니다. 같이

include 'grails_demo_plugin' 
project(":grails_demo_plugin").projectDir = new File("plugins/grails_demo_plugin") 

그리고 build.gradle 파일 종속성 블록에서

포함 : 내 settings.gradle 파일이 포함

dependencies { 
    compile project(":grails_demo_plugin") 
    compile "org.springframework.boot:spring-boot-starter-logging" 
    compile "org.springframework.boot:spring-boot-autoconfigure" 
    compile "org.grails:grails-core" 
    compile "org.springframework.boot:spring-boot-starter-actuator" 
    compile "org.springframework.boot:spring-boot-starter-tomcat" 
    compile "org.grails:grails-dependencies" 
    compile "org.grails:grails-web-boot" 
    compile "org.grails.plugins:cache" 
    compile "org.grails.plugins:scaffolding" 
    compile "org.grails.plugins:hibernate4" 
    compile "org.hibernate:hibernate-ehcache" 
    console "org.grails:grails-console" 
    profile "org.grails.profiles:web" 
    runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.8.2" 
    runtime "com.h2database:h2" 
    testCompile "org.grails:grails-plugin-testing" 
    testCompile "org.grails.plugins:geb" 
    testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" 
    testRuntime "net.sourceforge.htmlunit:htmlunit:2.18" 
} 

나는 모든 것이 잘 작동하는 응용 프로그램을 실행하려고 할 때하지만 난 Grails의를했을 때 전쟁,이 오류가 발생합니다.

Google의 몇 시간 후 오류가 Gradle-Spring-boot 작업 bootRepackage에서 발견되었습니다.

내 플러그인의 build.gradle 파일에 "bootRepackage {classifier = 'exec'}"을 추가했으나 오류가 사라졌지만 플러그인 -jar이 war 파일에 추가되지 않았습니다. 여기

내 응용 프로그램에 대한 GitHub의 링크입니다 여기

(https://github.com/Vigneshwaran082/grails_demo)

은 미래에 누군가를 위해 유용 할 수 있도록 내가, 내 자신의 질문에 대답하고 내 전체 스택 트레이스 링크 ( https://github.com/Vigneshwaran082/grails_demo/blob/Vigneshwaran082-stackTrace/stackTrace.txt enter link description here)

답변

1

입니다 .

bootRepackage 작업을 비활성화하면이 문제가 해결되었습니다.이 문제를 해결 한 plugins 디렉토리의 모든 build.gradle에 "bootRepackage.enabled = false"를 추가하십시오.