本文介绍了创建本地Maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建本地Maven存储库.我执行了以下步骤:
I want to create local maven repository. I did the following steps:
- 在Eclipse中安装了maven插件
- 在apache服务器中创建了一个文件夹本地存储库,可使用http://< my-domain>/localrepository
-
在我的项目pom.xml中,我提供了
- Installed maven plugin in eclipse
- Created one folder localrepository in apache server which is accessible using http://< my-domain>/localrepository
In my project pom.xml I have provided
<repositories>
<repository>
<id>repository</id>
<url>http://<my-domain>/localMavenRepository</url>
</repository>
</repositories>
但是它不能解析http://<上的jar. my-domain>/localMavenRepository
But it is not resolving the jars which are on http://< my-domain>/localMavenRepository
是否需要提供存储库?
推荐答案
您不能以这种方式创建私有存储库.查看本文: http://www.theserverside.com/news/1364121/Setting -Up-a-Maven存储库.
You can't create a private repository that way. Check out this article: http://www.theserverside.com/news/1364121/Setting-Up-a-Maven-Repository.
我正在使用 Artifactory Open Source 版本.
这篇关于创建本地Maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!