4
我有github.com Maven项目:GitHub上依赖
<project ...>
...
<groupId>com.example</groupId>
<artifactId>my-github-library</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
...
</project>
现在,我想我的,github上,库添加作为一个依赖于另一个我的本地应用程序项目:
<project ...>
...
<groupId>com.example</groupId>
<artifactId>my-local-application</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
...
<dependencies>
...
<dependency>
<groupId>com.example</groupId>
<artifactId>my-github-library</artifactId>
<version>1.0.0</version>
</dependency>
...
</dependencies>
...
</project>
这当然不起作用,因为GitHub不是Maven存储库。
如何添加一个额外的Maven仓库到项目pom文件?