Desktop version

Home arrow Computer Science arrow Building Applications with Scala


Integrating JasperReports with Play framework

We will need to create a new folder under ReactiveWebStore/app called reports. Then, we will copy all three new .jrxml files from the Jaspersoft Studio to this folder and set up the build dependencies.


First of all, we will need to add new dependencies to the build.sbt file.

Your build.sbt file should look like this after adding the Jasper dependencies:

libraryDependencies ++= Seq(

// .... Other dependencies ....

"net.sf.jasperreports" % "jasperreports" % "6.2.2" withSources() ,"net.sf.jasperreports" % "jasperreports-functions" % "6.2.2", "net.sf.jasperreports" % "jasperreports-chart-themes" % "6.2.2"


resolvers += "Jasper" at

"" resolvers += "JasperSoft" at



resolvers += "Jasper3rd" at



resolvers += "mondrian-repo-cache" at



resolvers += "spring-mil" at "" resolvers += "spring-rel" at "" resolvers += "oss" at


So, basically, we added all JasperReports dependencies and resolvers, which are a bunch of remote repositories where SBT can look for the jar files. You can run the $ activator compile command on the console in order to reload the new dependencies. After running compile, it is important to generate eclipse files again, so you will need to run $

activator eclipse.

Found a mistake? Please highlight the word and press Shift + Enter  
< Prev   CONTENTS   Next >

Related topics