Why doesn't Netbeans recognize import of maven dependencies in my Grails application?

I added a maven repo to my Grails BuildConfig and a couple of compiled dependencies. Unfortunately, Netbeans does not recognize import statements. It all compiles and works just fine, just intellisense, and the red underscores spoil my fun.

The ugliness :(

+6
source share
1 answer

As far as I know, Grails dependency management changed a bit ago - they switched from Ivy to Maven by default, some Grails repositories seem to have been moved / turned off, etc. (see http://grails.imtqy.com/grails-howtos/en/migrateToTheNewCentralRepository.html )

NetBeans seems to be unaware of these changes and therefore does not support the use of Maven in Grails.

You can still manually add the desired library by copying the .jar file to the lib directory of your Grails application (you may need to run "clean" in NetBeans). It worked for me.

0
source

All Articles