Getting your jar of a library or something to other people can be expensive in terms of time. So you probably have already had a look at the maven central repository guide ... and that is too expensive to set up unless you are a big company. I did the same and I left the argument for a couple of day until I played with maven gae plugin and I saw that it was exposing versions through google code!!!
This is cool, no trouble of any sort at all, no restriction... So how it works though? Easy there are just a few things to look over in your maven pom thanks to the Wagon WebDAV plugin... these are the steps
1. add extension to the build
2. register the repository
3. credential in settings.xml
<extensions>
<extension>
<groupId>org.jvnet.wagon-svn</groupId>
<artifactId>wagon-svn</artifactId>
<version>1.9</version>
</extension>
</extensions>
<distributionManagement>
<repository>
<id>maven-X-repo</id>
<name>Maven Repo for X (releases)</name>
<url>svn:https://X.googlecode.com/svn/maven-repo/releases</url>
<uniqueVersion>false</uniqueVersion>
</repository>
<snapshotRepository>
<id>maven-X-snapshot</id>
<name>Maven Repo X (snapshots)</name>
<url>svn:https://X.googlecode.com/svn/maven-repo/snapshots</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
</distributionManagement>
Make sure to create the folders in svn !!! ... then add to the settings the credentials for the repos (both of them)
<server>
<id>maven-X-repo-releases</id>
<username>xxxx</username>
<password>yyyy</password>
</server>
mvn deploy and you are done!
To use your jar is now easy! Put in the user pom this bit!
<repository>
<id>X</id>
<name>X</name>
<url>http://X.googlecode.com/svn/maven-repo/releases</url>
<repository>
分享到:
相关推荐
maven仓库所需要的jar包,包含完整的内容,可以去看一下简绍(https://blog.csdn.net/Fly_tom/article/details/81874197),由于csdn网站上传文件的限制,这个只是一部分,另一部分:...
Maven框架,本地jar资源仓,中央仓下载jar资源 有时在你的构建过程中,需要将第三方jar包添加到本地仓库中,因为它并存在于像Maven中央仓库或其它的公共仓库中。为了让Maven能够正确获取到jar包,第三方jar包必须...
Java idea maven repository,personal repository,yu-dao
repository
spark 1.5.1 maven repository
googlecode 上的 maven-db-plugin jar包。 包含 1.3 、 1.4 版本两个jar文件。
googlecode的maven-db-plugin插件,版本是1.4,中央仓库中没有该插件的jar包
maven-repository-metadata-3.0.jar
Hadoop Maven repository本地库 下载后直接解压就能用。。。。。
Maven repository.part1 for Java RESTful Web Service实战第二章需要的Mave库
mavenRepository 仓库 依赖 配合maven使用,采用阿里云的中央仓库,速度更快
maven-repository:贪吃的Maven Repository
Maven repository.part1 for Java RESTful Web Service实战第二章需要的Mave库
maven压缩包,repository本地仓库,还有准备好的项目模板,三合一!!!!!!!!!!!!
maven依赖库,里面含有较为全面的jar包,如果maven无法自动下载依赖库,可手动导入依赖库;该压缩包解压后可以直接在maven项目中指定路径使用。
maven3.3.9+repository
这个是maven的另一个部分jar,可以去看一下简绍(https://blog.csdn.net/Fly_tom/article/details/81874197),把这个文件下载完成,需要把它解压到maven-repository中的org文件下,一定是要点击右键解压到当前...
maven本地仓库,包含常用的jar包,大量大量,可以支持日常的学习使用 maven本地仓库,包含常用的jar包,大量大量,可以支持日常的学习使用 maven本地仓库,包含常用的jar包,大量大量,可以支持日常的学习使用maven...
maven本机仓库jar包,内含javaweb开发常用jar包,400+M大小,谨慎下载。
在搭建项目的时候总要用到jar包或依赖,这里有一份集成了所有依赖的maven包