Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Add repository to java maven

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/

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

<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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading