# maven-cdn-alioss-plugin
**Repository Path**: hbyufan/maven-cdn-alioss-plugin
## Basic Information
- **Project Name**: maven-cdn-alioss-plugin
- **Description**: 阿里云oss上传插件,用于上传cdn文件(js、css、图片等)
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 5
- **Created**: 2017-03-24
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
### [阿里云oss上传插件,用于上传cdn文件(js、css、图片等)](https://blog.fengjx.com/alioss)
example1, 上传源码路径
```xml
com.fengjx.maven.cdn
maven-cdn-alioss-plugin
1.0.0
http://oss-cn-shenzhen.aliyuncs.com
xxxxx
xxxxxx
bucketName
blog/assets
false
**/src/main/webapp/js/**
**/src/main/webapp/css/**
**/src/main/webapp/images/**
**/src/main/webapp/skins/**
**/src/main/webapp/skins/**/*.ftl
**/src/main/webapp/skins/**/*.properties
```
```bash
mvn cdn-alioss:upload
```
example2, 上传编译路径
```xml
com.fengjx.maven.cdn
maven-cdn-alioss-plugin
1.0.0
http://oss-cn-shenzhen.aliyuncs.com
xxxx
xxxxx
bucketName
blog/assets
false
${project.build.directory}/${project.build.finalName}
**/js/**
**/css/**
**/images/**
**/skins/**
**/skins/**/*.ftl
**/skins/**/*.properties
```
```bash
mvn package cdn-alioss:upload
```