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" />
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{nome_professor}]]></textFieldExpression>
</textField>
<staticText>
<reportElement style="Column header" x="0" y="65" width="378" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<text><![CDATA[Indicadores]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="378" y="65" width="46" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<text><![CDATA[Peso 1]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="425" y="65" width="44" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<text><![CDATA[Peso 2]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="469" y="65" width="44" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<text><![CDATA[Peso 3]]></text>
</staticText>
<staticText>
<reportElement style="Column header" x="513" y="65" width="42" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<text><![CDATA[Peso 4]]></text>
</staticText>
<staticText>
<reportElement x="5" y="10" width="125" height="22"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[Nome do Professor :]]></text>
</staticText>
</band>
</groupHeader>
<groupFooter>
<band height="6" splitType="Stretch"/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement x="11" y="0" width="542" height="20"/>
<textElement>
<font size="15"/>
</textElement>
<text><![CDATA[Instituto Medio de Administra��o e Gestao MBanza Kongo]]></text>
</staticText>
</band>
</pageHeader>
<columnHeader>
<band height="36" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="35" width="555" height="1"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnHeader>
<detail>
<band height="16" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="15" width="555" height="1"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
<textField>
<reportElement style="Detail" x="0" y="0" width="378" height="15"/>
<box>
<pen lineWidth="0.25" lineStyle="Solid"/>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<bottomPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{pergunta_professor}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Detail" x="378" y="0" width="48" height="15"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{pontua1}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Detail" x="426" y="0" width="43" height="15"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{pontua2}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Detail" x="469" y="0" width="44" height="15"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{pontua3}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Detail" x="513" y="0" width="40" height="15"/>
<box>
<topPen lineWidth="0.25" lineStyle="Solid"/>
<leftPen lineWidth="0.25" lineStyle="Solid"/>
<rightPen lineWidth="0.25" lineStyle="Solid"/>
</box>
<textElement textAlignment="Center"/>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{pontua4}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="45" splitType="Stretch">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
<graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement>
</line>
</band>
</columnFooter>
<pageFooter>
<band height="20" splitType="Stretch">
<textField>
<reportElement style="Column header" x="433" y="0" width="80" height="20"/>
<textElement textAlignment="Right">
<font size="10" />
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement style="Column header" x="513" y="0" width="40" height="20"/>
<textElement>
<font size="10" />
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="EEEEE dd MMMMM yyyy">
<reportElement style="Column header" x="0" y="0" width="197" height="20"/>
<textElement>
<font size="10" />
</textElement>
<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>