File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ # OSSStorageWagon
2+
3+ ## Upload maven artifacts using aliyunOSS
4+
5+ The OSSStorageWagon project enables you to upload your artifacts to a aliyun cloud storage bucket.
6+
7+ ``` xml
8+ <project >
9+ <build >
10+ <extensions >
11+ <extension >
12+ <groupId >com.qlangtech.maven.cloud</groupId >
13+ <artifactId >oss-storage-wagon</artifactId >
14+ <version >2.3</version >
15+ </extension >
16+ </extensions >
17+ </build >
18+
19+ <profiles >
20+
21+ <profile >
22+ <id >oss-repo</id >
23+ <properties >
24+ <releasesRepository >oss://maven.qlangtech.com/release</releasesRepository >
25+ <snapshotRepository >oss://maven.qlangtech.com/snapshot</snapshotRepository >
26+ </properties >
27+ </profile >
28+ </profiles >
29+ </project >
30+ ```
31+
32+ And in local user_home ` vi ~/aliyun-oss/mvn-config.properties ` shall add aliyun bucket config.
33+
34+ ``` properties
35+ endpoint =http://oss-cn-hangzhou.aliyuncs.com
36+ accessKey =xxxxxxxxx
37+ secretKey =xxxxxxxxx
38+ bucketName =kkkk
39+ ```
40+
41+ Then you can deploy artifact by sh command ` mvn deploy -Poss-repo `
42+
43+
Original file line number Diff line number Diff line change 55The CloudStorageMaven projects aims to provide an easy way to host your java artifacts on the cloud without having to set up a maven repository.
66
77Cloud storage options supported:
8-
8+ * [ Aliyun OSS ] ( https://github.com/qlangtech/CloudStorageMaven/tree/master/AliyunOSSStorageWagon )
99* [ AWS S3] ( https://github.com/gkatzioura/CloudStorageMaven/tree/master/S3StorageWagon )
1010* [ Google Cloud Storage] ( https://github.com/gkatzioura/CloudStorageMaven/tree/master/GoogleStorageWagon )
1111* [ Azure Blob storage] ( https://github.com/gkatzioura/CloudStorageMaven/tree/master/AzureStorageWagon )
You can’t perform that action at this time.
0 commit comments