mvn install无法找到本地存储库上安装的本地工件

问题描述 投票:2回答:1

当我正在尝试建立我的项目mvn clean install我有一个我的artifcat com.opengroup.pop:jpop-services-tools:jar:1.3.0问题

<dependency>
            <groupId>com.opengroup.pop</groupId>
            <artifactId>jpop-front-tools</artifactId>
            <version>${jpop.version}</version>
        </dependency>

这是堆栈跟踪

ERROR] Failed to execute goal on project justice-spark-scelles-rdd-app: Could not resolve dependencies for project fr.gouv.justice.spark:justice-spark-scelles-rdd-app:jar:1.0.0: The
 following artifacts could not be resolved: com.opengroup.pop:jpop-front-tools:jar:1.3.0, com.opengroup.pop:jpop-services-tools:jar:1.3.0, com.opengroup.pop:jpop-zdao-tools:jar:1.3.0
: Failure to find com.opengroup.pop:jpop-front-tools:jar:1.3.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until th
e update interval of central has elapsed or updates are forced -> [Help 1]

问题是这个artifcat存在于我的本地存储库中,我无法理解是什么问题enter image description here enter image description here

我的本地存储库配置得很好

<localRepository>D:/repository</localRepository>

mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)
Maven home: D:\Envirement\apache-maven-3.5.0-bin\apache-maven-3.5.0\bin\..
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jre1.8.0_144
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
java maven-3
1个回答
1
投票

检查包本身的内容。我的猜测是它将是空的/无效的。

从本地存储库中删除整个包并重建。很多时候,软件包似乎已损坏。下载时再次检查。

© www.soinside.com 2019 - 2024. All rights reserved.