Announcement Announcement Module
No announcement yet.
Trouble importing grails project into STS 2.5.1 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I'm glad you got it fixed.

    I'm sorry this caused you so much problems.

    Rest assured that I'll personally make sure this issue (STS-796) gets addressed soon. As your case shows, though the issue won't affect everyone, it can be very annoying and hard to debug when it does.


    • #17
      Add grails/dist and grails/lib directories in your build class path. That worked for me.


      • #18
        The problem I had was that the imported project was using grails 1.3.6

        But on the machine I was importing the project, I had 1.3.7 installed. The solution was as follows:
        1. Right click on the project in the Package Explorer.
        2. Select Grails.
        3. The grails installation will be empty. In the drop down, select your grails installation.
        4. Click OK.

        That should do the trick. I had to then run 'refresh dependencies' to complete a failed install of one of the plugins.


        • #19
          The errors you describe are to be expected if there are non entries under the "Grails Dependencies" node. (I.e you get lots of problems if the .jar dependencies that are supposed to be there are not).

          Try running Grails "Refresh Dependencies" on the project (in the Grails Tools context menu). See if that fixes the problem or you get some error messages.


          • #20
            I originally tried to run 'refresh dependencies' but because the grails installation was empty - it was failing. After setting the grails installation - the 'refresh dependencies' did the job.



            • #21
              1. how does one refresh dependencies via the menu? (I see you mentioned Alt-G,R is the short cut)
              2. hoe does one disable/enable dependency management?


              • #22
                The refresh Dependencies can be executed via menu as follows:

                - Right click on your grails project (or any resource inside the project) to get to the context menu
                - Select "Grails Tools >> Refresh Dependencies".

                The command to disable dependency management is also in the same menu.