簡體   English   中英

從Eclipse構建Java桌面應用程序時出錯

[英]Error building java desktop application from eclipse

我正在嘗試在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的更新間隔或強制執行更新-> [幫助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> 

請給我一個解決方案。

兩個簡單的(可能的)修復:

  1. 嘗試刪除本地存儲庫中的工件,然后進行重建以觸發下載。

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

經驗的最高答案,第二答案: 當maven說“直到經過MyRepo的更新間隔后,才會重新嘗試解析”,該間隔在哪里指定?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM