如何在pom.xml文件中使用de.entropia.can包

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

我正在尝试在pom.xml文件中使用这个github repo:https://github.com/entropia/libsocket-can-java。我找不到这个github repo的maven依赖。我通过以下链接将jitpack存储库和maven依赖项添加到pom文件:https://jitpack.io/p/entropia/libsocket-can-java。这是我的代码:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.entropia</groupId>
    <artifactId>libsocket-can-java</artifactId>
    <version>4433bb7</version>
</dependency>

其中4433bb7是最新的提交号。我尝试构建时遇到此错误:

Missing artifact com.github.entropia:libsocket-can-java:jar:4433bb7

Could not resolve dependencies for projec: Failure to find com.github.entropia:libsocket-can-java:jar:4433bb7 in https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack.io has elapsed or updates are forced -> [Help 1]

我尝试使用捆绑版本:0.1.0,1.0.0仍然没有运气。请帮我解决这个问题。谢谢大家。

java maven pom.xml
1个回答
0
投票

似乎是特定版本的问题。尝试最新快照:

<dependency>
        <groupId>com.github.entropia</groupId>
        <artifactId>libsocket-can-java</artifactId>
        <version>master-SNAPSHOT</version>
</dependency>
© www.soinside.com 2019 - 2024. All rights reserved.