一.进项改造
1.1 版本号修改
进项修改custom custom-common custom-web 的版本号 根据项目名称定义
eg:
1.2 自动custom-web 打包位置修改
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <outputDirectory>../target</outputDirectory> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> <finalName>custom-web</finalName> </build> |
1.3 修改引入标准版 jxindependent-startup 版本号 引入jar包即可
二.标准版改造
a.后期标准版会在发版的同时,将含有版本号的jar包放到maven私服,进项直接依赖即可
b.如果着急用可以下载标准版对应分支,手工传到私服,但注意不要和标准版冲突。
上传方式:
b1.在标准版代码中对应所有pom文件增加如下配置
<distributionManagement> <repository> <id>thirdparty</id> <url>http://mvn.dev.baiwang-inner.com:8081/nexus/content/repositories/thirdparty/</url> </repository> <snapshotRepository> <id>snapshots</id> <url>http://mvn.dev.baiwang-inner.com:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> |
b2.并将jxindependent-startup 的pom文件打包方式修改为jar
b3.在maven的配置文件 setting.xml中 增加如下配置
|--> <servers> <!-- server | Specifies the authentication information to use when connecting to a particular server, identified by | a unique name within the system (referred to by the 'id' attribute below). | | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are | used together. |--> <server> <id>releases</id> <username>deployment</username> <password>deployment123</password> </server> <server> <id>snapshots</id> <username>deployment</username> <password>deployment123</password> </server> <server> <id>thirdparty</id> <username>admin</username> <password>admin123</password> </server> <!-- Another sample, using keys to authenticate. <server> <id>siteServer</id> <privateKey>/path/to/private/key</privateKey> <passphrase>optional; leave empty if not used.</passphrase> </server> --> </servers> |
b3.打包上传
idea—>Maven projects->jxindependent→1.clean 2.install 3.deploy
三.部署
3.1 机器配置
3.2 发版配置
具体可参考