Elp...Erro ao compilar arquivo jrxml ...Build errors for ; org.apache.maven.lifecycle.Li

0 respostas
P

Olá,

estou com problema de compilar esse relatório estou usando java 5,tomcat 6,eclipse galileo,ireport 3.0.1.,maven
Estou usando essa versão do ireport pois não encontro 3.1.0

E quando faz o build me da esse erro o que pode ser ???

E mais uma duvida tenho o ireport 4.0.0 e gostaria de utilizar mais quando altero o pom.xml
não faz a atualização , o que tenho que fazer pra utilizar essa versão mais nova??

se alguém puder me ajudar…agradeço…

11/04/11 19h13min18s BRT: [INFO] Compiling 1 report design files.
11/04/11 19h13min18s BRT: [INFO] Compiling report file: respostaprofessor.jrxml
11/04/11 19h13min19s BRT: Build errors for avalia; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:jasperreports-maven-plugin:1.0-beta-1:compile-reports (default) on project avalia: Error compiling report design : C:\workspace-projeto-final\avalia\src\main\jasperreports\respostaprofessor.jrxml
<!-- JasperReports Compilation -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jasperreports-maven-plugin</artifactId>
				<version>1.0-beta-1</version>
				<configuration>
					<outputDirectory>${project.build.outputDirectory}/jasperreports</outputDirectory>
					<compiler>net.sf.jasperreports.engine.design.JRJdtCompiler</compiler>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>compile-reports</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>jasperreports</groupId>
						<artifactId>jasperreports</artifactId>
						<version>3.1.0</version>
						<scope>compile</scope>
					</dependency>
				</dependencies>
			</plugin>

fonte do relatório

<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="respostaprofessor" language="groovy" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="Title" fontName="Arial" fontSize="26" isBold="true" pdfFontName="Helvetica-Bold"/>
	<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
	<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
	<style name="Detail" fontName="Arial" fontSize="12"/>
	<queryString>
		<![CDATA[SELECT
     pergunta_professor.`nm_pergunta_professor` AS pergunta_professor,
     resposta_professor.`pontua1` AS pontua1,
     resposta_professor.`pontua2` AS pontua2,
     resposta_professor.`pontua3` AS pontua3,
     resposta_professor.`pontua4` AS pontua4,
     resposta_professor.`nm_professor` AS nome_professor
FROM
     `pergunta_professor` pergunta_professor INNER JOIN `resposta_professor` resposta_professor ON pergunta_professor.`id_pergunta_professor` = resposta_professor.`id_pergunta_professor`
order by
resposta_professor.`nm_professor`,
 pergunta_professor.`nm_pergunta_professor`]]>
	</queryString>
	<field name="pergunta_professor" class="java.lang.String"/>
	<field name="pontua1" class="java.lang.Integer"/>
	<field name="pontua2" class="java.lang.Integer"/>
	<field name="pontua3" class="java.lang.Integer"/>
	<field name="pontua4" class="java.lang.Integer"/>
	<field name="nome_professor" class="java.lang.String"/>
	<variable name="v_nome_instituto" class="java.lang.String"/>
	<group name="nome_professor" isStartNewPage="true">
		<groupExpression><![CDATA[$F{nome_professor}]]></groupExpression>
		<groupHeader>
			<band height="100" splitType="Stretch">
				<textField>
					<reportElement style="SubTitle" x="137" y="10" width="398" height="22" forecolor="#333333"/>
					<box>
						<pen lineColor="#000000"/>
						<topPen lineColor="#000000"/>
						<leftPen lineColor="#000000"/>
						<bottomPen lineColor="#000000"/>
						<rightPen lineColor="#000000"/>
					</box>
					<textElement>
						<font size="12" />
					&lt;/textElement&gt;
					&lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{nome_professor}]]&gt;&lt;/textFieldExpression&gt;
				&lt;/textField&gt;
				&lt;staticText&gt;
					&lt;reportElement style="Column header" x="0" y="65" width="378" height="15"/&gt;
					&lt;box&gt;
						&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;/box&gt;
					&lt;textElement textAlignment="Center"/&gt;
					&lt;text&gt;&lt;![CDATA[Indicadores]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
				&lt;staticText&gt;
					&lt;reportElement style="Column header" x="378" y="65" width="46" height="15"/&gt;
					&lt;box&gt;
						&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;/box&gt;
					&lt;textElement textAlignment="Center"/&gt;
					&lt;text&gt;&lt;![CDATA[Peso 1]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
				&lt;staticText&gt;
					&lt;reportElement style="Column header" x="425" y="65" width="44" height="15"/&gt;
					&lt;box&gt;
						&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;/box&gt;
					&lt;textElement textAlignment="Center"/&gt;
					&lt;text&gt;&lt;![CDATA[Peso 2]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
				&lt;staticText&gt;
					&lt;reportElement style="Column header" x="469" y="65" width="44" height="15"/&gt;
					&lt;box&gt;
						&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;/box&gt;
					&lt;textElement textAlignment="Center"/&gt;
					&lt;text&gt;&lt;![CDATA[Peso 3]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
				&lt;staticText&gt;
					&lt;reportElement style="Column header" x="513" y="65" width="42" height="15"/&gt;
					&lt;box&gt;
						&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
						&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;/box&gt;
					&lt;textElement textAlignment="Center"/&gt;
					&lt;text&gt;&lt;![CDATA[Peso 4]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
				&lt;staticText&gt;
					&lt;reportElement x="5" y="10" width="125" height="22"/&gt;
					&lt;textElement&gt;
						<font  size="12"/>
					&lt;/textElement&gt;
					&lt;text&gt;&lt;![CDATA[Nome do Professor :]]&gt;&lt;/text&gt;
				&lt;/staticText&gt;
			&lt;/band&gt;
		&lt;/groupHeader&gt;
		&lt;groupFooter&gt;
			&lt;band height="6" splitType="Stretch"/&gt;
		&lt;/groupFooter&gt;
	&lt;/group&gt;
	&lt;background&gt;
		&lt;band splitType="Stretch"/&gt;
	&lt;/background&gt;
	&lt;title&gt;
		&lt;band splitType="Stretch"/&gt;
	&lt;/title&gt;
	&lt;pageHeader&gt;
		&lt;band height="20" splitType="Stretch"&gt;
			&lt;staticText&gt;
				&lt;reportElement x="11" y="0" width="542" height="20"/&gt;
				&lt;textElement&gt;
					<font  size="15"/>
				&lt;/textElement&gt;
				&lt;text&gt;&lt;![CDATA[Instituto Medio de Administra��o  e Gestao MBanza Kongo]]&gt;&lt;/text&gt;
			&lt;/staticText&gt;
		&lt;/band&gt;
	&lt;/pageHeader&gt;
	&lt;columnHeader&gt;
		&lt;band height="36" splitType="Stretch"&gt;
			&lt;line&gt;
				&lt;reportElement positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/&gt;
				&lt;graphicElement&gt;
					&lt;pen lineWidth="0.5" lineColor="#999999"/&gt;
				&lt;/graphicElement&gt;
			&lt;/line&gt;
		&lt;/band&gt;
	&lt;/columnHeader&gt;
	&lt;detail&gt;
		&lt;band height="16" splitType="Stretch"&gt;
			&lt;line&gt;
				&lt;reportElement positionType="FixRelativeToBottom" x="0" y="15" width="555" height="1"/&gt;
				&lt;graphicElement&gt;
					&lt;pen lineWidth="0.5" lineColor="#999999"/&gt;
				&lt;/graphicElement&gt;
			&lt;/line&gt;
			&lt;textField&gt;
				&lt;reportElement style="Detail" x="0" y="0" width="378" height="15"/&gt;
				&lt;box&gt;
					&lt;pen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;bottomPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
				&lt;/box&gt;
				&lt;textElement/&gt;
				&lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{pergunta_professor}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField&gt;
				&lt;reportElement style="Detail" x="378" y="0" width="48" height="15"/&gt;
				&lt;box&gt;
					&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
				&lt;/box&gt;
				&lt;textElement textAlignment="Center"/&gt;
				&lt;textFieldExpression class="java.lang.Integer"&gt;&lt;![CDATA[$F{pontua1}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField&gt;
				&lt;reportElement style="Detail" x="426" y="0" width="43" height="15"/&gt;
				&lt;box&gt;
					&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
				&lt;/box&gt;
				&lt;textElement textAlignment="Center"/&gt;
				&lt;textFieldExpression class="java.lang.Integer"&gt;&lt;![CDATA[$F{pontua2}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField&gt;
				&lt;reportElement style="Detail" x="469" y="0" width="44" height="15"/&gt;
				&lt;box&gt;
					&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
				&lt;/box&gt;
				&lt;textElement textAlignment="Center"/&gt;
				&lt;textFieldExpression class="java.lang.Integer"&gt;&lt;![CDATA[$F{pontua3}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField&gt;
				&lt;reportElement style="Detail" x="513" y="0" width="40" height="15"/&gt;
				&lt;box&gt;
					&lt;topPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;leftPen lineWidth="0.25" lineStyle="Solid"/&gt;
					&lt;rightPen lineWidth="0.25" lineStyle="Solid"/&gt;
				&lt;/box&gt;
				&lt;textElement textAlignment="Center"/&gt;
				&lt;textFieldExpression class="java.lang.Integer"&gt;&lt;![CDATA[$F{pontua4}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
		&lt;/band&gt;
	&lt;/detail&gt;
	&lt;columnFooter&gt;
		&lt;band height="45" splitType="Stretch"&gt;
			&lt;line&gt;
				&lt;reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/&gt;
				&lt;graphicElement&gt;
					&lt;pen lineWidth="0.5" lineColor="#999999"/&gt;
				&lt;/graphicElement&gt;
			&lt;/line&gt;
		&lt;/band&gt;
	&lt;/columnFooter&gt;
	&lt;pageFooter&gt;
		&lt;band height="20" splitType="Stretch"&gt;
			&lt;textField&gt;
				&lt;reportElement style="Column header" x="433" y="0" width="80" height="20"/&gt;
				&lt;textElement textAlignment="Right"&gt;
					<font size="10" />
				&lt;/textElement&gt;
				&lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField evaluationTime="Report"&gt;
				&lt;reportElement style="Column header" x="513" y="0" width="40" height="20"/&gt;
				&lt;textElement&gt;
					<font size="10" />
				&lt;/textElement&gt;
				&lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[" " + $V{PAGE_NUMBER}]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
			&lt;textField pattern="EEEEE dd MMMMM yyyy"&gt;
				&lt;reportElement style="Column header" x="0" y="0" width="197" height="20"/&gt;
				&lt;textElement&gt;
					<font size="10" />
				&lt;/textElement&gt;
				&lt;textFieldExpression class="java.util.Date"&gt;&lt;![CDATA[new java.util.Date()]]&gt;&lt;/textFieldExpression&gt;
			&lt;/textField&gt;
		&lt;/band&gt;
	&lt;/pageFooter&gt;
	&lt;summary&gt;
		&lt;band splitType="Stretch"/&gt;
	&lt;/summary&gt;
&lt;/jasperReport&gt;
Criado 12 de abril de 2011
Respostas 0
Participantes 1