Results 1 to 4 of 4

Thread: Problem with dependencies in STS/Grails

Threaded View

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Default Problem with dependencies in STS/Grails

    Hi all,

    I have a problem that I'm hoping someone can help with. It's quite a basic question this: basically, I'm having problems using dependencies in Grails projects in the STS tool suite.

    So I've added a dependency to the project, by adding this to BuildConfig.groovy:

    Code:
        dependencies {
    
            compile 'org.apache.poi:poi:3.7', 'org.apache.poi:poi-ooxml:3.7'
    
        }
    This builds OK and I can see that the POI library has been downloaded into my ivy cache in .grails. However, the classes that are provided by this library aren't available. If I try to import them in a groovy file, I can an error saying "unable to resolve class" and the "Open Type" dialog does not find any of the classes either.

    I have tried "grails clean" and "grails refresh-dependencies" to no avail. I can make this work by copying the libraries to my lib/ folder but I'm sure I shouldn't have to? I've had the same problem with another library as well. This is using Grails STS 2.6.0.

    I'm sure I'm doing something obviously wrong here, any suggestions to how I ought to do this would be highly appreciated!

    Regards,
    Jan
    Last edited by Andrew Eisenberg; Sep 21st, 2012 at 12:14 PM. Reason: formatting

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •