You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/community/how-to-deploy-to-maven.md
+85-1Lines changed: 85 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ under the License.
75
75
<activeProfile>gpg</activeProfile>
76
76
</activeProfiles>
77
77
```
78
-
###Publish to SNAPSHOT
78
+
## Publish to SNAPSHOT
79
79
### 1. Deploy flink connector
80
80
81
81
Switch to the flink connector directory, let’s take flink version 1.11.6 and scalar 2.12 as examples
@@ -105,3 +105,87 @@ Switch to the spark connector directory, let’s take spark version 2.3.4 and sc
105
105
export SCALA_VERSION="2.11"
106
106
mvn deploy
107
107
```
108
+
## Publish to Release
109
+
110
+
### 1. Prepare GitHub authority
111
+
Encrypt github token password: `mvn --encrypt-password <token>` This token is a token generated by github users to access the apache warehouse. The output cat is similar to `{bSSA+TC6wzEHNKukcOn...}` in `~/.m2/settings. Add to the `<servers>` tag in xml`
112
+
```xml
113
+
<server>
114
+
<id>github</id>
115
+
<username>github user name</username>
116
+
<password>{bSSA+TC6wzEHNKukcOn...}</password>
117
+
</server>
118
+
```
119
+
120
+
### 2. Publish to maven staging
121
+
Take the release of Doris Flink Connector 1.0.0 as an example, the flink version is 1.13.5, the scala version is 2.12, and others are similar
122
+
```bash
123
+
cd extension/flink-doris-connector/
124
+
export DORIS_HOME=$PWD/../../
125
+
source${DORIS_HOME}/env.sh
126
+
export FLINK_VERSION=1.13.5
127
+
export SCALA_VERSION=2.12
128
+
mvn release:clean
129
+
mvn release:prepare
130
+
```
131
+
After that, maven needs to enter three information
132
+
1. The version information of Doris Flink Connector, we can do it by default, you can directly press Enter or enter the version you want
133
+
2. The release tag of Doris Flink Connector, because the release process will add a tag in apache/incubator-doris, so a tag name is required. If it is default, just press Enter.
134
+
3. The version number of the next version of Doris Flink Connector. Here we need to pay attention. Since our version number is {flink_version}_{scala_version}_1.0.0, maven's algorithm will increase the scala version number by one, if we want to use it next time This version of 1.0.1 can be changed to 1.13.5-2.12-1.0.1-SNAPSHOT
135
+
```
136
+
...
137
+
[INFO] [prepare] 3/17 check-dependency-snapshots
138
+
[INFO] Checking dependencies and plugins for snapshots ...
139
+
[INFO] [prepare] 4/17 create-backup-poms
140
+
[INFO] [prepare] 5/17 map-release-versions
141
+
What is the release version for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) 1.13.5-2.12-1.0.0: :
142
+
[INFO] [prepare] 6/17 input-variables
143
+
What is the SCM release tag or label for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) doris-flink-connector-1.13.5-2.12-1.0.0: :
144
+
[INFO] [prepare] 7/17 map-development-versions
145
+
What is the new development version for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) 1.13.5-3.12-1.0.0-SNAPSHOT: : 1.13.5-2.12-1.0.1-SNAPSHOT
[INFO] Checking dependencies and plugins for snapshots ...
143
+
[INFO] [prepare] 4/17 create-backup-poms
144
+
[INFO] [prepare] 5/17 map-release-versions
145
+
What is the release version for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) 1.13.5-2.12-1.0.0: :
146
+
[INFO] [prepare] 6/17 input-variables
147
+
What is the SCM release tag or label for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) doris-flink-connector-1.13.5-2.12-1.0.0: :
148
+
[INFO] [prepare] 7/17 map-development-versions
149
+
What is the new development version for "Doris Flink Connector"? (org.apache.doris:doris-flink-connector) 1.13.5-3.12-1.0.0-SNAPSHOT: : 1.13.5-2.12-1.0.1-SNAPSHOT
0 commit comments