pom文件添加插件配置
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.9</version> <configuration> <suiteXmlFiles> <suiteXmlFile>./src/main/resources/testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins> </build>
执行打包命令:mvn clean package
标签:plugin,配置,maven,plugins,apache,org,打包 From: https://www.cnblogs.com/ixtao/p/18542776