我目前正在处理一个必须通过命令行为maven-surefire-plugin设置系统属性的用例。我尝试使用systemPropertiesFile属性,但似乎我的构建没有获得文件中的属性。下面是我尝试过的语法:
mvn install -DsystemPropertiesFile=<path-to-file>为此,我使用Maven 3.0.5。通过POM文件设置相同的属性很好,但不幸的是,这不是我可以使用的解决方案。我是不是遗漏了什么?
发布于 2016-08-11 03:31:57
systemPropertiesFile不是作为用户属性公开的,所以如果不想更改pom.xml,可以使用argLine
mvn install -DargLine="-DmyProperty=abc -DotherPoperty=def"https://stackoverflow.com/questions/38881929
复制相似问题