Icepdf-core maven install in Eclipse not working

I need to use the PDFviewer in Vaadin, which has an IcePdf dependency ... so I tried to install it, but it gives me a DependencyResolutionException. I tried different versions, such as 4.1.1, 4.2.2 and others, but nothing works ... I am not very familiar with maven, so I don’t know how to add it through import, because it asked for an artifact file, which I I know for sure: (here is the dependency tag that I added to pom.xml.

<dependency> <groupId>org.icepdf</groupId> <artifactId>icepdf-core</artifactId> <version>4.1.4</version> </dependency> 

Any idea ???

+6
source share
2 answers

This thread is a bit outdated, but maybe the answer still helps someone: one way to add the maven dependency for icepdf is to add the ice maven2 repository, as well as the dependency on your pom project, as in the example below. Don’t worry that the repository URL says "anonsvn", they have the maven repository running there.

 <project xmlns="http://maven.apache.org/POM/4.0.0" ... > ... <repositories> <repository> <id>ice-maven-release</id> <name>Ice Maven Release Repository</name> <url>http://anonsvn.icesoft.org/repo/maven2/releases</url> </repository> ... </repositories> <dependencies> <dependency> <groupId>org.icepdf</groupId> <artifactId>icepdf-core</artifactId> <version>4.4.0</version> </dependency> ... </dependencies> </project> 
+12
source

Of course, he cannot find it, because this artifact is not available in Maven Central in any of the most popular Maven public repositories, as I see it. You have to figure out how you can get it with Maven. From my 1-minute research, it seems that it is mostly unavailable to Maven anywhere in public.

So what can you do. If you use and have access to some own Maven repository (for example, to the internal Nexus or something else), you can deploy the loaded banks to it. This is the preferred method and it does not suck. Alternatively, you can install it in a local repo, but each developer will have to do this starting from the project. Alternatively, you can put these libraries in SCM along with the code and depend on them using the system area , but that sucks.

0
source

Source: https://habr.com/ru/post/916960/


All Articles