我试图在eclipse上构建一个github项目pdfSAM。依赖项是Java8、getText和Maven。我在eclipse上安装了所有插件,但是当我使用pom.xml构建这个项目时,我得到了pdfsam核心项目的一个错误-
未能对项目pdfsam-core执行目标:无法解决项目org.pdfsam:pdfsam-core:jar:3.0.0.RELEASE-SNAPSHOT:的依赖关系:org.sejda:sejda-模型:jar:2.0.0-alpha13 13,org.sejda:sejda-转换:jar:2.0.0-alpha13 13:未能找到org.sejda:sejda-模型:jar:2.0.0- https://repository.jboss.org/nexus/content/repositories/public/中的alpha13 13被缓存在本地存储库中,在jboss的更新间隔已过或更新被迫->帮助1“之前,不会重新尝试解析。”
在eclipse上生成错误我还尝试使用命令行构建项目
1.mvn清洁安装
2.mvn清洁安装-PfastTests
3.mvn清洁安装-Dmaven.test.skip=true
所有的命令都给了我同样的错误,生成失败就会发生。
我还插入pdfsam-core的pom.xml文件-
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<description>Core pdfsam library</description>
<parent>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-parent</artifactId>
<version>3.0.0.RELEASE-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.pdfsam</groupId>
<artifactId>pdfsam-i18n</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>de.jensd</groupId>
<artifactId>fontawesomefx</artifactId>
</dependency>
<dependency>
<groupId>org.sejda</groupId>
<artifactId>sejda-model</artifactId>
</dependency>
<dependency>
<groupId>org.sejda</groupId>
<artifactId>sejda-conversion</artifactId>
</dependency>
<dependency>
<groupId>org.sejda</groupId>
<artifactId>eventstudio</artifactId>
</dependency>
<dependency>
<groupId>jdepend</groupId>
<artifactId>jdepend</artifactId>
</dependency>
</dependencies>
</project>
请给我一个解决办法。
发布于 2015-10-29 07:34:47
两个简单的(可能的)修复:
第一答案来自经验,第二答案来自:当maven说“直到MyRepo的更新间隔过去后才会重新尝试”时,指定的时间间隔在哪里?
https://stackoverflow.com/questions/33405114
复制相似问题