【问题标题】:Error building java desktop application from eclipse从 Eclipse 构建 Java 桌面应用程序时出错
【发布时间】:2015-10-29 02:46:37
【问题描述】:

我正在尝试在 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:在https://repository.jboss.org/nexus/content/repositories/public/ 中找不到 org.sejda:sejda-model:jar:2.0.0-alpha13被缓存在本地仓库中,直到 jboss 的更新间隔已过或强制更新后才会重新尝试解析 -> [Help 1] "

Build error on 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>

请给我一个解决方案。

【问题讨论】:

    标签: java eclipse maven build


    【解决方案1】:

    两个简单的(可能的)修复:

    1. 尝试删除本地存储库中的工件并重建以触发下载。

    2. 使用 -U maven 目标更新快照。

    经验的最佳答案,第二答案: When maven says "resolution will not be reattempted until the update interval of MyRepo has elapsed", where is that interval specified?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-24
      • 2023-03-22
      • 2011-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-17
      • 1970-01-01
      相关资源
      最近更新 更多