maven surefire插件返回退出代码:0

maven surefire插件返回退出代码:0,maven,pom.xml,maven-surefire-plugin,Maven,Pom.xml,Maven Surefire Plugin,我尝试将变量从父pom传递到属性文件。var用于java代码中的一些测试。 我使用带有systemPropertyVariables的maven surefire插件。(见下文)( 但当我运行“mvn安装”时,构建失败,我得到退出代码:0 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifac

我尝试将变量从父pom传递到属性文件。var用于java代码中的一些测试。 我使用带有systemPropertyVariables的maven surefire插件。(见下文)( 但当我运行“mvn安装”时,构建失败,我得到退出代码:0

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>3.0.0-M3</version>
      <configuration>
        <systemPropertyVariables>
          <VarName>VarValue</VarName>
        </systemPropertyVariables>
      </configuration>
    </plugin>
  </plugins>
</build>

org.apache.maven.plugins
maven surefire插件
3.0.0-M3
VarValue

您希望得到什么?我正在尝试将变量传递到属性文件,这只是父pom。对不起,请您编辑问题,并准确说明您做了什么、得到了什么以及您希望得到什么?我目前无法理解您的解释。我编辑了我的问题,希望现在能清楚不,不幸的是不能。您如何定义变量是什么?Maven构建的输出是什么?您的问题需要至少两倍长。