一键部署插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
王兵 db8b40733b
开源
1 month ago
src/main 开源 1 month ago
.gitignore 开源 1 month ago
README.md 开源 1 month ago
pom.xml 开源 1 month ago

README.md

使用方法

<build>
    <!-- 项目名称 -->
    <finalName>${artifactId}</finalName>
    <!-- 默认的主代码目录 -->
    <sourceDirectory>src/main/java</sourceDirectory>
    <!-- 默认的测试代码目录 -->
    <testSourceDirectory>src/test/java</testSourceDirectory>
    <plugins>
        <!-- 一键部署 -->
        <plugin>
            <groupId>xyz.wbsite</groupId>
            <artifactId>deployee-maven-plugin</artifactId>
            <version>latest</version>
            <configuration>
                <targetPath>${build.directory}</targetPath>
                <targetFile>${build.finalName}.${project.packaging}</targetFile>
                <servers>
                    <!-- 服务部署信息 -->
                    <server>
                        <!-- 服务名称 -->
                        <name>something</name>
                        <!-- 服务器远程地址 -->
                        <ip>10.0.0.1</ip>
                        <!-- 服务器远程端口 -->
                        <port>22</port>
                        <!-- 服务器登录账户 -->
                        <username>root</username>
                        <!-- 服务器登录密码 -->
                        <password>***</password>
                        <!-- 部署环境 对应spring.profiles.active-->
                        <deployActive>test</deployActive>
                        <!-- 部署路径 -->
                        <deployPath>/www</deployPath>
                        <!-- 部署端口 -->
                        <deployPort>8080</deployPort>
                    </server>
                </servers>
            </configuration>
        </plugin>
    </plugins>
</build>

Powered by TurnKey Linux.