Skip to content

toalaska/maven-plugin-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 21, 2019
7cfcb29 · Apr 21, 2019

History

5 Commits
Apr 21, 2019
Apr 21, 2019
Apr 21, 2019
Apr 21, 2019
Apr 21, 2019

Repository files navigation

使用方法

代码统计

<plugin>
    <groupId>cn.toalaska</groupId>
    <artifactId>deploy</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
        <basedir>${basedir}</basedir>
    </configuration>
    <executions>
        <execution>
            <!-- phase表示运行在哪个阶段 -->
            <phase>clean</phase>
            <goals>
                <!--goal标识运行哪个命令,可以这样认为-->
                <goal>filecount</goal>
            </goals>
        </execution>
    </executions>
</plugin>

部署文件

psw和id_rsa_path 二选一

<plugin>
    <groupId>cn.toalaska</groupId>
    <artifactId>deploy</artifactId>
    <version>1.10-SNAPSHOT</version>
    <configuration>
        <basedir>${basedir}</basedir>
        <host>192.168.199.241</host>
        <user>root</user>
        <!-- <psw>your pwd</psw> -->
        <id_rsa_path>C:\Users\Myra\.ssh\id_rsa</id_rsa_path>
        <files>nh.png:/tmp/dddd/nh.png</files>
    </configuration>
    <executions>
        <execution>
            <!-- phase表示运行在哪个阶段 -->
            <phase>clean</phase>
            <goals>
                <!--goal标识运行哪个命令,可以这样认为-->
                <goal>deploy</goal>
            </goals>
        </execution>
    </executions>
</plugin>

TODO

执行远程脚本

About

一个部署文件到服务器的maven插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages