6

I've added a maven repo to my Grails BuildConfig and a couple of compile dependencies. Unfortunately, Netbeans isn't recognising the import statements. It all compiles and works fine, just intellisense and the red underlines are spoiling my fun.

The ugliness :(

sparkyspider
  • 13,195
  • 10
  • 89
  • 133

1 Answers1

0

as far as I know, the dependency management of Grails has somewhat changed some time ago - they moved from Ivy to Maven as default, some Grails repositories seem to have been moved / shut down, etc. (see http://grails.github.io/grails-howtos/en/migrateToTheNewCentralRepository.html)

It seems that NetBeans isn't aware of these changes, and thus doesn't support using Maven in Grails.

You can still manually add the desired libary by copying the .jar file in the lib directory of your Grails application (you might have to run "clean" in NetBeans). That worked for me.

ronin667
  • 323
  • 2
  • 15