是否可以在 maven-surefire-plugin 之前运行 exec-maven-plugin,我在运行过程中观察到 maven-surefire-plugin 首先执行,即使标记中的序列是第二个。我的场景是执行 JAVA CLASS (使用 exec-maven-plugin ),它生成我的 testng.xml 并可以使用(maven-surefire-plugin)运行它。
maven exec-maven-plugin maven-surefire-plugin
exec-maven-plugin ×1
maven ×1
maven-surefire-plugin ×1