0
votes

Generate PDF file using jasper report in Grails 3.1.8 . But when I add dependencies some error is occurred. I can't adding any jasper report dependencies in Grails 3.1.8. Please help me or any idea to use jasper report plugin in grails 3.1.8.I already used

       (1)
       compile "org.grails.plugins:jasper:1.11.0" 
       (2)
       compile 'com.lowagie:itext:2.1.7.js2'
       compile 'net.sf.jasperreports:jasperreports:6.2.1'
2
What's the error message? - Dave Jarvis
@Dave Jarvis Error | Error initializing classpath: Could not find org.grails.plugins:jasper:1.11.0. - Rafiq

2 Answers

0
votes

The plugin org.grails.plugins:jasper:1.11.0 is not grails 3 compatible. It is only up to Grails 2.x There is a plugin for Grails 3 version here.https://grails.org/plugins.html#plugin/grails-jasper.

In other hand, you could run grails dependency-report for seeing what it is happening. It seems that there is a conflict between dependencies. But as I said, that plugin probably won't work with your project.

0
votes

I was having the same issue. I fixed it by downloading the jasper report jar and kept it in a folder named lib, then showed the path in dependencies like this.

compile files('lib/jasperreports-5.5.0.jar')