bingoogolapple.github.io icon indicating copy to clipboard operation
bingoogolapple.github.io copied to clipboard

Maven

Open bingoogolapple opened this issue 8 years ago • 0 comments

查看 Maven 安装目录

mvn -v

配置阿里云 Maven 镜像,排除 in-project 仓库

<mirror>
   <id>nexus-aliyun</id>
   <mirrorOf>*,!in-project</mirrorOf>
   <name>Nexus aliyun</name>
   <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

修改本地仓库地址

修改配置文件中的 localRepository

配置项目内部仓库

<repositories>
    <repository>
        <id>in-project</id>
        <name>In Project Repo</name>
        <url>file://${project.basedir}/libs</url>
    </repository>
</repositories>

image

单独构建模块 business,同时会构建 business 模块依赖的其他模块

mvn install -pl business -am

单独构建模块 business,同时构建依赖模块 business 的其他模块

mvn install -pl business -amd

http://m.blog.csdn.net/article/details?id=51423318

指定 profile 为 dev,并且跳过 test

mvn clean package -Dmaven.test.skip=true -Pdev

bingoogolapple avatar Dec 25 '16 15:12 bingoogolapple