Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

icepdf-core maven install in Eclipse not working

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

like image 297
user1170364 Avatar asked May 30 '12 00:05

user1170364


People also ask

Why Maven dependencies are not getting downloaded?

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.

How do I force Maven to download dependencies in eclipse?

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.

How do I download Maven repository in eclipse?

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.

How do I create a missing dependency in Maven?

My problem solved by right click on project -> Maven -> Update project. Then the Maven Dependencies appear on the project explore. Save this answer.


1 Answers

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>
like image 80
rexford Avatar answered Sep 21 '22 00:09

rexford