<name>Local Staging Repository</name> <url>file://${project.build.directory}/mvn-repo </url> </repository> </distributionManagement> 上面我们指定了在项目的build目录下面创建了mvn-repo用来存储本地打好的package configuration> <altDeploymentRepository>maven.repo::default::file://${project.build.directory}/mvn-repo </outputDirectory> <branch>refs/heads/mvn-repo</branch><! repository> <id>ARTIFACT-ID</id> <url>https://raw.github.com/flydean/github-maven-repository/mvn-repo
项目地址:https://github.com/dianping/cat 编译步骤: 这个项目比较另类,把编译需要的jar包,单独放在git分支mvn-repo里了,而且官方文档里给了一个错误的命令提示 : git git@github.com:dianping/cat.git mvn-repo 当你直接把这条命令贴到terminal里执行时,会提示命令无效,正确的姿势如下: 1、先安装jdk 1.7 2、将分支mvn-repo下的jar包复制到本机maven仓库 git clone https://github.com/dianping/cat.git cd cat git checkout mvn-repo
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo </plugin> </plugins> </build> </project> 然后执行 mvn clean deploy 在target的目录中可以看到mvn-repo
<id>github-repo</id> <url>https://raw.githubusercontent.com/fengjiening/mvn-repo
mavenCentral() maven { url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo
mavenCentral() maven { url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo
引入依赖库时使用aar 使用网上第三方的依赖库时尽量使用aar,可以在mavenhttp://gradleplease.appspot.com/或者githuhttps://github.com/Goddchen/mvn-repo
mybatis-generator-limit-plugin-mvn-repo</id> <url>https://raw.github.com/wucao/mybatis-generator-limit-plugin/mvn-repo