0

I have the following snippet in my pom.xml file, trying to install the iText library:

<dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itext-core</artifactId>
    <version>8.0.1</version>
</dependency>

However, when I clean and build the project I get the following error:

Failed to execute goal on project ProjectName: Could not resolve dependencies for project com.mycompany:ProjectName:jar:1.0-SNAPSHOT: com.itextpdf:itext-core:jar:8.0.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced.

The only version of iText in the maven thing seems to have not been updated since 2005 - how can I make it register 8.0.1?

kris
  • 11
  • 2
  • 1
    Your error message doesn't match your pom. Your pom has `itext7-core` and the error message has `itext-core`. – tgdavies Sep 03 '23 at 01:27
  • https://central.sonatype.com/artifact/com.itextpdf/itext-core/8.0.1 – Dave Newton Sep 03 '23 at 01:28
  • sorry that was a mistake i had ```xml com.itextpdf itext-core 8.0.1 ``` in my xml file, not what i said in the question body! – kris Sep 03 '23 at 01:30
  • See https://stackoverflow.com/questions/38893345/maven-how-to-import-dependency-of-type-pom -- itext-core is just a pom. – tgdavies Sep 03 '23 at 01:34

0 Answers0