GithubHelp home page GithubHelp logo

Comments (6)

ardeshirayati avatar ardeshirayati commented on July 20, 2024 1

Hi
I solved that by this config : jasper

<dependency>
	<groupId>net.sf.jasperreports</groupId>
	<artifactId>jasperreports</artifactId>
	<version>5.5.1</version>
	<exclusions>
		<exclusion>
			<groupId>eclipse</groupId>
			<artifactId>jdtcore</artifactId>
		</exclusion>
	</exclusions>
</dependency>

from jasper-report-maven-plugin.

bjornarl avatar bjornarl commented on July 20, 2024

This workaround that involves changing the JDT version seems to solve this problem: http://community.jaspersoft.com/jasperreports-server/issues/3498 (comments 7 & 8).

from jasper-report-maven-plugin.

guihatano avatar guihatano commented on July 20, 2024

This workaround didn't work for me

from jasper-report-maven-plugin.

mkielar avatar mkielar commented on July 20, 2024

I worked this around by adding this dependency to the plugin execution:

<dependency>
    <groupId>net.sf.jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>6.1.0</version>
</dependency>

and thus replacing the 5.2.0 version specified in plugin's pom.xml.

So now my plugin configuration looks like this:

<plugin>

    <groupId>com.alexnederlof</groupId>
    <artifactId>jasperreports-plugin</artifactId>
    <version>1.6</version>

    <executions>
        <execution>
            <phase>process-sources</phase>
            <goals>
                <goal>jasper</goal>
            </goals>
        </execution>
    </executions>

    <configuration>
        <compiler>net.sf.jasperreports.engine.design.JRJdtCompiler</compiler>
        <sourceDirectory>src/main/resources/reports</sourceDirectory>
        <outputDirectory>${project.build.directory}/classes/reports</outputDirectory>
        <outputFileExt>.jasper</outputFileExt>
        <xmlValidation>true</xmlValidation>
        <verbose>true</verbose>
        <numberOfThreads>2</numberOfThreads>
    </configuration>

    <dependencies>

        <!-- 
          - Workaround for Java 8 incompatibility bug:
          - https://github.com/alexnederlof/Jasper-report-maven-plugin/issues/12
        -->
        <dependency>
            <groupId>net.sf.jasperreports</groupId>
            <artifactId>jasperreports</artifactId>
            <version>6.1.0</version>
        </dependency>

        <!-- other project dependencies ->

    </dependencies>

</plugin>

I guess the solution would be then to upgrade net.sf.jasperreports:jasperreports dependency to something from the 6.x.x tree.

from jasper-report-maven-plugin.

driv avatar driv commented on July 20, 2024

Works for me too with the workaround by mkielar

from jasper-report-maven-plugin.

arthurnl avatar arthurnl commented on July 20, 2024

2.0 works for me to in java-8

from jasper-report-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.