Closed DanielYWoo closed 7 years ago
Daniels-MacBook-Pro:benchmarkPDF danielwu$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.github.librepdf.openpdf:openpdf:jar:1.0.3 is missing, no dependency information available
[WARNING] The POM for com.github.librepdf.openpdf:pdf-rtf:jar:1.0.3 is missing, no dependency information available
[WARNING] The POM for com.github.librepdf.openpdf:pdf-xml:jar:1.0.3 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/pdf-rtf/1.0.3/pdf-rtf-1.0.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.985 s
[INFO] Finished at: 2017-09-15T11:36:51+08:00
[INFO] Final Memory: 10M/188M
[INFO] ------------------------------------------------------------------------
The correct path should be https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-rtf/1.0.3/pdf-rtf-1.0.3.jar (without openpdf).
Check the group ID. It should be <groupId>com.github.librepdf</groupId> And not <groupId>com.github.librepdf.openpdf</groupId>
You should use <dependency> <groupId>com.github.librepdf</groupId> <artifactId>pdf-xml</artifactId> <version>${project.version}</version> </dependency>
This is my config
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>openpdf</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>pdf-html</artifactId>
<version>1.0.3</version>
</dependency>
Have you found a solution for your problem?
UPDATE: Using these dependencies I get the correct artifacts (Please note I get them from repo.maven.apache.org). Please check your maven repositories settings.
Here the output of "mvn compile" in a new project. Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/1.0.3/openpdf-1.0.3.pom Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/1.0.3/openpdf-1.0.3.pom (2 KB at 2.6 KB/sec) Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf-parent/1.0.3/openpdf-parent-1.0.3.pom Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf-parent/1.0.3/openpdf-parent-1.0.3.pom (11 KB at 113.9 KB/sec) Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-html/1.0.3/pdf-html-1.0.3.pom Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-html/1.0.3/pdf-html-1.0.3.pom (700 B at 8.4 KB/sec) Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-xml/1.0.3/pdf-xml-1.0.3.pom Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-xml/1.0.3/pdf-xml-1.0.3.pom (699 B at 8.4 KB/sec) Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/1.0.3/openpdf-1.0.3.jar Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-html/1.0.3/pdf-html-1.0.3.jar Downloading: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-xml/1.0.3/pdf-xml-1.0.3.jar Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-html/1.0.3/pdf-html-1.0.3.jar (44 KB at 296.5 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/pdf-xml/1.0.3/pdf-xml-1.0.3.jar (20 KB at 70.0 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/com/github/librepdf/openpdf/1.0.3/openpdf-1.0.3.jar (1835 KB at 1248.2 KB/sec)
Hi @DanielYWoo, do you still have this problem?
No, but I switched to other solutions. Thanks anyway
cannot use pdf-xml 1.0.3