在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