[
http://jira.codehaus.org/browse/MOJO-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151826#action_151826
]
Pete Gillis commented on MOJO-1228:
-----------------------------------
This issue is actually caused by DTD trouble. Apparently the plugin depends on
jasperreport 1.2. This is fine unless you are using new attributes that are
not in that version of the DTD. One work around would be to turn off
validation, not acceptable. The other work around is to add a dependency on
the plugin for the version of jasperreports you are using. This will throw the
correct DTD in the classpath ahead of the 1.2 verison, and will work. It's
possible this will not work depending on binary compatibility, so not
acceptable long term.
What I would like to see is an attribute to set the jasperreports version.
> Element type "pen" must be declared.
> -------------------------------------
>
> Key: MOJO-1228
> URL: http://jira.codehaus.org/browse/MOJO-1228
> Project: Mojo
> Issue Type: Bug
> Components: jasperreports
> Reporter: Jingmei Fan
>
> my jrxml contains
> <line direction="TopDown">
> <reportElement
> x="293"
> y="250"
> width="0"
> height="444"
> key="line-24"/>
> <graphicElement stretchType="NoStretch">
> <pen lineWidth="0.1" lineStyle="Solid"/>
> </graphicElement>
> my pom.xml looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>com.rim.salesedi.emailnotification</groupId>
> <artifactId>reactor</artifactId>
> <version>SNAPSHOT</version>
> <relativePath>../reactor/pom.xml</relativePath>
> </parent>
> <version>SNAPSHOT</version>
> <artifactId>email-generator</artifactId>
> <name>email-generator</name>
> <url>http://www.springframework.org/spring-ws</url>
> <dependencies>
> <dependency>
> <groupId>com.rim.salesedi.emailnotification</groupId>
> <artifactId>common</artifactId>
> <version>SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>com.rim.salesedi.emailnotification</groupId>
> <artifactId>resourceBundle</artifactId>
> <version>SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-j2ee</artifactId>
> <scope>system</scope>
> <version>1.2</version>
> <systemPath>
>
> ${JBOSS422_HOME}/server/default/lib/jboss-j2ee.jar
> </systemPath>
> </dependency>
> <dependency>
> <groupId>jasperreports</groupId>
> <artifactId>jasperreports</artifactId>
> <version>3.0.0</version>
> </dependency>
> <dependency>
> <groupId>com.lowagie</groupId>
> <artifactId>itext</artifactId>
> <version>1.3.1</version>
> </dependency>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-ejb3</artifactId>
> <scope>system</scope>
> <version>1.2</version>
> <systemPath>
>
> ${JBOSS422_HOME}/server/default/lib/jboss-ejb3x.jar
> </systemPath>
> </dependency>
> <dependency>
> <groupId>jasperreports</groupId>
> <artifactId>jasperreports</artifactId>
> <version>3.0.0</version>
> </dependency>
> <dependency>
> <groupId>xalan</groupId>
> <artifactId>xalan</artifactId>
> <version>2.7.0</version>
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
>
> <artifactId>jasperreports-maven-plugin</artifactId>
> <configuration>
> <xmlValidation>true</xmlValidation>
>
> <outputDirectory>${project.build.directory}/classes</outputDirectory>
>
>
> <compiler>net.sf.jasperreports.engine.design.JRJavacCompiler</compiler>
> </configuration>
>
> <executions>
> <execution>
> <goals>
>
> <goal>compile-reports</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> </project>
> when I run it in command line, the build failed since
> [INFO] : [EMAIL PROTECTED]
> Error compiling report design : C:\jasperreports\OrderReceipt.jrxml
> Error compiling report design : C:\jasperreports\OrderReceipt.jrxml : Element
> type "pen" must be declared.
--
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