1、聚合modules:一次构建全部模块,解决多个模块多次构建问题
<modules>
<module>../user-dao</module>
<module>../user-service</module>
</modules>
2、继承parent:依赖复用,解决多个模块多次复用问题
<parent>
<groupId>com.java1234.user</groupId>
<artifactId>user-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../user-parent/pom.xml</relativePath>
</parent>
3、版本统一管理properties:解决Jar版本冲突问题
<properties>
<spring.version>4.1.7.RELEASE</spring.version>
<junit.version>4.12</junit.version>
<log4j.version>1.2.17</log4j.version>
</properties>
4、镜像使用(阿里元):
<
mirrors
>
<
mirror
>
<
id
>alimaven</
id
>
<
name
>aliyun maven</
name
>
<
url
>http://maven.aliyun.com/nexus/content/groups/public/</
url
>
<
mirrorOf
>central</
mirrorOf
>
</
mirror
>
</
mirrors
>
5、私服使用(liunx)
没有安装jdk的先移步到https://blog.csdn.net/qq_34122638/article/details/89442678,进行jdk安装
创建文件夹:mkdir -p /usr/local/software/nexus
切换目录:cd /usr/local/software/nexus
下载nexus:wget "https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.3-02-bundle.tar.gz"
解压nexus:tar -xzf nexus-2.14.3-02-bundle.tar.gz
进入cd /usr/local/software/nexus/nexus-2.14.3-02/bin路径下的bin,启动./nexus start,
访问http://192.168.1.11:8081/nexus/#welcome