Grails / Groovy / GGTS: Conflicting module versions on run-app

后端 未结 16 550
一向
一向 2020-12-30 02:06

After upgrading a Grails application from 2.2.0 to 2.2.1 I keep getting the following error when attempting to debug a Grails application from GGTS via Debug as... -> Grails

相关标签:
16条回答
  • 2020-12-30 02:38

    For me a compile from the grails command window did the trick

    0 讨论(0)
  • 2020-12-30 02:44

    I had the same problem when running it through eclipse and what worked for me is to make the below changes Go to Project properties -> Groovy Compiler ->configure workspace settings . Uncheck the checkbox "Enable checking for mismatch between project and workspace groovy compiler levels"

    0 讨论(0)
  • 2020-12-30 02:44

    I had the same problem, I went to Project properties -> Groovy Compiler ->configure workspace settings and I clicked on the "Switch to" button that corresponded to one of the two versions in the error message. I hope this will help

    0 讨论(0)
  • 2020-12-30 02:44

    use mvn denpendency:tree to check your dependencies, maybe there exist version conflicts.

    0 讨论(0)
  • 2020-12-30 02:44

    Currently (using Eclipse 2020-06, 4.16.0) none of the above solutions work any more.

    1. Open the Run Configuration of your groovy script
    2. Remove all User Entries from the Classpath tab
    3. Press "Restore Default Entries"

    This should add the default classpath containing your specified Groovy version as User Entry.

    0 讨论(0)
  • 2020-12-30 02:46

    I had the same problem, I was picking up groovy-all 2.0.7 from GGTS and 2.0.8 from my grails project. To resolve the problem I removed the "Groovy Dependencies" library from the eclipse project.

    Right click on project -> Properties -> Java Build Path -> Libraries (tab) -> Groovy Dependencies -> Remove

    0 讨论(0)
提交回复
热议问题