我正在尝试在Eclipse上构建github项目pdfSAM。依赖关系是JAVA 8,getText和Maven。我在eclipse上安装了所有插件,但是当我使用pom.xml构建项目时,出现了pdfsam-core项目错误-
“无法对项目pdfsam-core执行目标:无法解析项目org.pdfsam:pdfsam-core:jar:3.0.0的依赖关系。释放快照:无法解决以下工件:org.sejda:sejda-model :jar:2.0.0-alpha13,org.sejda:sejda-conversion:jar:2.0.0-alpha13:无法在https:// repository中找到org.sejda:sejda-model:jar:2.0.0-alpha13 jboss.org/nexus/content/repositories/public/已缓存在本地存储库中,直到经过jboss的更新间隔或强制执行更新后,才会重新尝试解决--[[Help 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>
请给我一个解决方案。
两个简单的(可能的)修复:
尝试删除本地存储库中的工件,然后重建以触发下载。
使用-U maven目标来更新快照。
经验中的最高答案,答案中的第二个答案:当maven说“直到MyRepo的更新间隔过去时,才会重新尝试分辨率”,该间隔在哪里指定?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句