client package upgrade

Table of contents

Preface

1. How to package and upgrade the client?

2. Usage steps

1. Modify the version first

2. Execute the package upgrade command

Summarize


Preface

This article mainly records the steps that are often required for packaging and upgrade in daily development.


1. How to package and upgrade the client?

# Upgrade release version 
## Modify version 
* Parent pom.xml 
  <bill.client.version>0.1.2</bill.client.version> 
* test-bill-client <version>0.1.2</version> 

## Release 
* terminal cd test-bill-client 
* mvn clean deploy -Dmaven.test.skip=true

2. Usage steps

1. Modify the version first

#首先,在父的pom.xml里,先写了依赖
            <dependency>
                <groupId>com.fxtesrch.milk</groupId>
                <artifactId>test-bill-client</artifactId>
                <version>${bill.client.version}</version>
            </dependency>

Then, when we change the content of some clients, we need to rewrite the package and upgrade. Otherwise, if other systems call your client and the client is not updated, an error will be reported.

First, change the version number in the parent pom.

 #第2,在父的pom.xml里进行bill.client.version进行版本号的更改
   <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <pro.version>1.0-SNAPSHOT</pro.version>
        <bill.client.version>0.1.5</bill.client.version>
    </properties>

Second, change the version number in the sub-pom

#在子pom.xml中进行版本号的修改 
  <groupId>com.fxtesrch.milk</groupId>
    <artifactId>test-bill-client</artifactId>
    <version>0.1.5</version>
<!--    <version>0.1.2</version>-->
    <packaging>jar</packaging>

The code is as follows (example):

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import  ssl
ssl._create_default_https_context = ssl._create_unverified_context

2. Execute the package upgrade command


## 发布
* terminal cd test-bill-client
* mvn clean deploy -Dmaven.test.skip=true 

Another thing to note is that because it is uploaded to the remote end through maven, you need to fill in the remote address before uploading to the corresponding place.

 How to check whether packaging is successful:

 

Overall flow chart:

 

The code is as follows (example):

data = pd.read_csv(
    'https://labfile.oss.aliyuncs.com/courses/1283/adult.data.csv')
print(data.head())

The data requested by the url network used here.


Summarize

This article mainly records the steps that are often required for packaging and upgrade in daily development.

Guess you like

Origin blog.csdn.net/weixin_46442877/article/details/129383653