使用Ivy.xml从Github解决依赖关系

时间:2019-03-26 18:14:32

标签: java ivy

我有一个我为其创建了Release的github存储库。创建发行版时,我手动添加了一个.jar文件。让我们称之为exampleLibrary.jar 这将是github.com/MyExampleRepo/Releases

我有一个项目,我想添加一个依赖项以使用我在v1.0版中添加的exampleLibrary.jar文件

该项目使用Ivy.xml解决依赖关系。

要使用maven和pom.xml从github获取jar,我想它看起来像这样:

<dependency>
    <groupId>com.github.User</groupId>
    <artifactId>Repo name</artifactId>
    <version>Release tag</version>
</dependency>

如何使用Ivy.xml做到这一点?这是我尝试过的:

<dependency org="com.github" name="MyExampleRepo" rev="v1.0"/>

0 个答案:

没有答案