1 Star 0 Fork 0

OSCHINA-MIRROR/tech-microworld-maven-cdn-alioss-plugin

Join Gitlife
Discover and participate in excellent open source projects with over 10 million developers. Private repositories are also completely free :)
Join for free
Clone/Download
Contribute code
Sync code
Cancel
Hint: Since Git does not support empty folders, creating a folder will generate an empty .keep file.
Loading...
README.md

Плагин для загрузки CDN файлов с помощью OSS Aliyun (JS, CSS, изображения и т.д.)

Пример 1, путь исходного кода

<plugin>
    <groupId>com.fengjx.maven.cdn</groupId>
    <artifactId>maven-cdn-alioss-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
        <endpoint>http://oss-cn-shenzhen.aliyuncs.com</endpoint>
        <accessKeyId>xxxxx</accessKeyId>
        <accessKeySecret>xxxxxx</accessKeySecret>
        <!-- Имя Bucket для загрузки -->
        <bucketName>bucketName</bucketName>
        <!-- Префикс пути в OSS -->
        <prefix>blog/assets</prefix>
        <!-- false: выводить логи, true: скрывать логи -->
        <quiet>false</quiet>
        <includes>
            <include>**/src/main/webapp/js/**</include>
            <include>**/src/main/webapp/css/**</include>
            <include>**/src/main/webapp/images/**</include>
            <include>**/src/main/webapp/skins/**</include>
        </includes>
        <excludes>
            <exclude>**/src/main/webapp/skins/**/*.ftl</exclude>
            <exclude>**/src/main/webapp/skins/**/*.properties</exclude>
        </excludes>
    </configuration>
</plugin>
mvn cdn-alioss:upload
``````xml
<plugin>
    <groupId>com.fengjx.maven.cdn</groupId>
    <artifactId>maven-cdn-alioss-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
        <endpoint>http://oss-cn-shenzhen.aliyuncs.com</endpoint>
        <accessKeyId>xxxx</accessKeyId>
        <accessKeySecret>xxxxx</accessKeySecret>
        <!-- Имя Bucket для загрузки -->
        <bucketName>bucketName</bucketName>
        <!-- Префикс пути в OSS -->
        <prefix>blog/assets</prefix>
        <!-- false: выводить логи, true: скрывать логи -->
        <quiet>false</quiet>
        <baseDir>${project.build.directory}/${project.build.finalName}</baseDir>
        <includes>
            <include>**/js/**</include>
            <include>**/css/**</include>
            <include>**/images/**</include>
            <include>**/skins/**</include>
        </includes>
        <excludes>
            <exclude>**/skins/**/*.ftl</exclude>
            <exclude>**/skins/**/*.properties</exclude>
        </excludes>
    </configuration>
</plugin>
``````bash
mvn package cdn-alioss:upload

Comments ( 0 )

You can comment after Login

Introduction

No description available Expand Collapse
Apache-2.0
Cancel

Releases

No releases yet

Contributor

All

Recent Activities

Load more
No more results to load
1
https://gitlife.ru/oschina-mirror/tech-microworld-maven-cdn-alioss-plugin.git
git@gitlife.ru:oschina-mirror/tech-microworld-maven-cdn-alioss-plugin.git
oschina-mirror
tech-microworld-maven-cdn-alioss-plugin
tech-microworld-maven-cdn-alioss-plugin
master