I need to use PDFviewer in Vaadin which has a dependency of IcePdf... so I was trying to install it but it gives me DependencyResolutionException. I tried different versions like 4.1.1, 4.2.2 and others as well but nothing works... Iam not very familiar with maven so dont exactly know how to add it through import as it asked for artifact file which I dnt exactly know :(. here is the dependency tag that I've added in pom.xml.
<dependency>
<groupId>org.icepdf</groupId>
<artifactId>icepdf-core</artifactId>
<version>4.1.4</version>
</dependency>
Any idea ???
If you run Maven and it fails to download your required dependencies it's likely to be caused by your local firewall & HTTP proxy configurations. See the Maven documentation for details of how to configure the HTTP proxy.
In Maven, you can use Apache Maven Dependency Plugin, goal dependency:purge-local-repository to remove the project dependencies from the local repository, and re-download it again.
To download the index, select Windows > Preferences > Maven and enable the Download repository index updates on startup option. After changing this setting, restart Eclipse. This triggers the download of the Maven index.
My problem solved by right click on project -> Maven -> Update project. Then the Maven Dependencies appear on the project explore. Save this answer.
This thread is a bit old but maybe the answer is still of help to somebody: one way to add a maven dependency for icepdf is to add the ice maven2 repository as well as the dependency to your project's pom, like in the example below. Don't bother that the url of the repository says "anonsvn", they've got a 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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With