2016-08-17 12 views
0

私は、 "java.lang.IllegalStateException:C:\ test \ grails_demo \ plugins \の名前を変更できません"というエラーを投げて、インラインプラグインでgrails 3.1.9アプリケーションと戦おうとしています。 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プラグインの問題

ファイルの名前を変更できない理由がわかりません。私settings.gradleファイルが含まれています

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

そしてbuild.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のをしたときに戦争、私はこのエラーが発生しています。

グーグルの数時間後、エラーは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.txtenter link description here

答えて

1

は、それが将来的に誰かのために有用であるかもしれないように私は、自分の質問に答える午前です。

bootRepackageタスクを無効にするだけで、この問題を修正したプラグインディレクトリ内のすべてのbuild.gradleに「bootRepackage.enabled = false」を追加することでこの問題を解決しました。

関連する問題