我正在尝试在eclipse上构建一个github项目pdfSAM。依赖项是JAVA 8,getText和Maven。我在eclipse上安装了所有插件,但是当我使用pom.xml构建项目时,我收到了pdfsam-core项目的错误 -
"无法在项目pdfsam-core上执行目标:无法解析项目org.pdfsam的依赖项:pdfsam-core:jar:3.0.0.RELEASE-SNAPSHOT:无法解析以下工件:org .sejda:sejda-model:jar:2.0.0-alpha13,org.sejda:sejda-conversion:jar:2.0.0-alpha13:找不到org.sejda:sejda-model:jar:2.0.0-alpha13 in https://repository.jboss.org/nexus/content/repositories/public/缓存在本地存储库中,在jboss的更新间隔过去或强制更新之前,不会重新尝试解析 - > [帮助1]"
Build error on eclipse 我还尝试使用命令
从命令行构建项目1.mvn clean install
2.mvn clean install -PfastTests
3.mvn clean install -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>
&#13;
请给我一个解决方案。
答案 0 :(得分:0)
两个简单(可能)的修复:
尝试删除本地仓库中的工件并重建以触发下载。
使用-U maven目标更新快照。
经验的最佳答案,第二个答案来自: When maven says "resolution will not be reattempted until the update interval of MyRepo has elapsed", where is that interval specified?