首页 > 其他分享 >maven test 环境变量设置

maven test 环境变量设置

时间:2023-03-27 14:33:23浏览次数:56  
标签:xml 设置 maven value1 test 环境变量

在pox.xml中添加

<build>
    <plugins>
        <plugin>
            <groupId>org.aparch.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configration>
                <environmentVariables>
                     <环境变量name1>环境变量value1</>
                     <环境变量name2>环境变量value2</>
                </environmentVariables>
            </configration>
        </plugin>
    </plugins>
</build>

 

标签:xml,设置,maven,value1,test,环境变量
From: https://www.cnblogs.com/xin-xing/p/17261443.html

相关文章