We've been happily using the maven jetty plugin for quite some time now.
Recently we've added Jasper reports to the webapp
We are managing to compile them through maven, and to have them working
when assembling a full war (using jetty:run-war or deploying the war externally works).
What I can't sort out is how to have also jetty:run to pick the reports.
My objective is to have the compiled reports be accessible from the Servlet
context as "/reports/AnyReport.jasper".
With the above setup (assembling a war) I can access succesfully the
Instead when using jetty:run the above URL gives a 404, and when trying
to generate the report I get the following:
org.springframework.context.ApplicationContextException: Could not load JasperReports report for URL [/reports/ScanReport.jasper]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/reports/ScanReport.jasper]
I've setup my pom so that the jasper plugins is as follows