I have a question to maven: How do i add the repositories correctly. I want to use IronPdf library according to the instructions at https://ironpdf.com/java/docs/:
I think i need to add the following repository to the pom.xml:
https://repo1.maven.org/maven2/
<repositories>
<repository>
<id>ironsoftware</id>
<name>Iron Software Repository</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
But i get an error if i call mvn install:
Could not resolve dependencies for project
de.neuefische:FishScraper:jar:1.0-SNAPSHOT: The following artifacts
could not be resolved:
com.ironsoftware:com.ironsoftware:glas:2023.4.4,
com.ironsoftware:org.slf4j:glas:2.0.5:
com.ironsoftware:com.ironsoftware:glas:2023.4.4 was not found in
https://repo1.maven.org/maven2/ during a previous attempt. This
failure was cached in the local repository and resolution is not
reattempted until the update interval of ironsoftware has elapsed or
updates are forced
What i am doing wrong?
Added the repository https://repo1.maven.org/maven2/
>Solution :
it seems you missed some repository or it may be for your version of repository. you can update your repository. also you can try by this i had same problem and this worked for me.
<dependency>
<groupId>com.ironsoftware</groupId>
<artifactId>ironpdf</artifactId>
<version>2023.1.1</version>
</dependency>
also you can run mvn clean install -U
or delete .m2 in your local.