[
http://jira.codehaus.org/browse/MOJO-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David C. Hicks closed MOJO-1039.
--------------------------------
Resolution: Fixed
Changing the URI of the ENTITY to a more explicit value worked to solve the
problem.
> jasperreports-maven-plugin dies trying to compile included .xml file
> --------------------------------------------------------------------
>
> Key: MOJO-1039
> URL: http://jira.codehaus.org/browse/MOJO-1039
> Project: Mojo
> Issue Type: Bug
> Components: jasperreports
> Environment: Sun Java 1.4.2_13, Maven 2.0.7, JasperReports 2.0.3,
> Linux
> Reporter: David C. Hicks
> Attachments: jr.zip
>
>
> A file is included in the .jrxml for substitution purposes using an ENTITY
> tag in the xml header. jasperreports-maven-plugin dies while attempting to
> compile the included xml file. The attached example is a cut-down version of
> a larger report description. The larger version compiles with no problem
> using the Ant JRAntCompileTask task.
> Here is the complete Maven output from a test run:
> [EMAIL PROTECTED]:~/workspace/JR$ mvn -e install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Test
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [jasperreports:compile-reports {execution: default}]
> [INFO] Compiling 1 report design files.
> [INFO] Compiling report file: transfer.jrxml
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] : [EMAIL PROTECTED]
> Error compiling report design :
> /home/dhicks/workspace/JR/src/main/jasperreports/transfer.jrxml
> Error compiling report design :
> /home/dhicks/workspace/JR/src/main/jasperreports/transfer.jrxml :
> headerParms.xml
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Error compiling report design :
> /home/dhicks/workspace/JR/src/main/jasperreports/transfer.jrxml
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: Error compiling
> report design :
> /home/dhicks/workspace/JR/src/main/jasperreports/transfer.jrxml
> at
> org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:236)
> at
> org.codehaus.mojo.jasperreports.JasperReportsMojo.execute(JasperReportsMojo.java:191)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Feb 08 00:22:19 EST 2008
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email