Jasper-report-maven-plugin icon indicating copy to clipboard operation
Jasper-report-maven-plugin copied to clipboard

jasperreport plugin cannot resolve itext dependency

Open mcoutard opened this issue 6 years ago • 1 comments

Hello, i am trying to use your plugin and i face an error i can't resolve. I created an empty project with this pom.xml :

<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>testIText</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
   <build>
	<plugins>
		<plugin>
			<groupId>com.alexnederlof</groupId>
			<artifactId>jasperreports-plugin</artifactId>
			<version>2.4</version>
			<executions>
				<execution>
					<phase>process-sources</phase>
	   				<goals>
	      					<goal>jasper</goal>
	   				</goals>
	   			</execution>
			</executions>
			<configuration>
				<!-- These are the default configurations: -->
				<compiler>net.sf.jasperreports.engine.design.JRJdtCompiler</compiler>
				<sourceDirectory>src/main/jasperreports</sourceDirectory>
				<outputDirectory>${project.build.directory}/jasper</outputDirectory>
				<outputFileExt>.jasper</outputFileExt>
				<xmlValidation>true</xmlValidation>
				<verbose>false</verbose>
				<numberOfThreads>4</numberOfThreads>
				<failOnMissingSourceDirectory>true</failOnMissingSourceDirectory>
				<sourceScanner>org.codehaus.plexus.compiler.util.scan.StaleSourceScanner</sourceScanner>
			</configuration>
		</plugin>
	</plugins>
</build>
</project>

So this is a classic pom. And when i try to build the project i have this mistake :

--- maven-clean-plugin:2.5:clean (default-clean) @ testIText ---

--- jasperreports-plugin:2.4:jasper (default) @ testIText ---
The POM for com.lowagie:itext:jar:2.1.7.js6 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.040 s
Finished at: 2018-10-02T11:02:28+02:00
------------------------------------------------------------------------
Failed to execute goal com.alexnederlof:jasperreports-plugin:2.4:jasper (default) on project testIText: Execution default of goal com.alexnederlof:jasperreports-plugin:2.4:jasper failed: Plugin com.alexnederlof:jasperreports-plugin:2.4 or one of its dependencies could not be resolved: Failure to find com.lowagie:itext:jar:2.1.7.js6 in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-plugin-repository has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

I am using maven 3.5.4 and java 1.8.0_181

So do you have already encountered this problem or is this new ? And do you have any idea how it could be resolved ?

mcoutard avatar Oct 02 '18 09:10 mcoutard

See https://community.jaspersoft.com/questions/1071031/itext-js6-dependency-issue

brunoabdon avatar Oct 02 '18 14:10 brunoabdon