Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使systemPropertyVariables成为必填项_Java_Maven_Maven 2_Maven Plugin - Fatal编程技术网

Java 如何使systemPropertyVariables成为必填项

Java 如何使systemPropertyVariables成为必填项,java,maven,maven-2,maven-plugin,Java,Maven,Maven 2,Maven Plugin,maven surefire插件中systemPropertyVariables下列出的属性,如何使它们成为必需的?在下面的代码中,如何使变量“path”成为必需的 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>

maven surefire插件中systemPropertyVariables下列出的属性,如何使它们成为必需的?在下面的代码中,如何使变量“path”成为必需的

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20</version>
                <configuration>
                    <systemPropertyVariables>
                        <Path>${path}</Path>
                    </systemPropertyVariables>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
</plugin>

org.apache.maven.plugins
maven surefire插件
2.20
${path}
testng.xml

这是否回答了您的问题:?这是否回答了您的问题:?