c******n 发帖数: 4965 | 1 I tried
mvn -Dkey=val
this works fine
but I'd like to fix it in pom.xml
I tried adding it to section, also tried adding it to
project.properties file, neither works
thanks a lot | g**********y 发帖数: 14569 | 2 在pom.xml里你没法定义system property, 你想定义一个property, 肯定是想在plugin
里用它,对吧?就用普通property不行吗?
to
【在 c******n 的大作中提到】 : I tried : mvn -Dkey=val : this works fine : but I'd like to fix it in pom.xml : I tried adding it to section, also tried adding it to : project.properties file, neither works : thanks a lot
| c******n 发帖数: 4965 | 3 thanks, but plugin is not defined by myself,
it's actually the clover plugin, higher versions of clover fires off a
Xwindow for reports, and fails if I'm in a console.
setting system property java.awt.headless=true would work
plugin
【在 g**********y 的大作中提到】 : 在pom.xml里你没法定义system property, 你想定义一个property, 肯定是想在plugin : 里用它,对吧?就用普通property不行吗? : : to
| g**********y 发帖数: 14569 | 4 Usually, plugin expect those system parameters from command line. If plugin
writer wants, he can provide a way to configure through .
Unfortunately, Clover doesn't do that.
Your choice, either download clover source code and change it; or try the
newer version of Clover. Seems Clover is maintained by Atlassian now, maybe
they already have solution.
【在 c******n 的大作中提到】 : thanks, but plugin is not defined by myself, : it's actually the clover plugin, higher versions of clover fires off a : Xwindow for reports, and fails if I'm in a console. : setting system property java.awt.headless=true would work : : plugin
| c******n 发帖数: 4965 | 5 Thanks, I do it through Makefile now,
but it's kind of unsafe , if the user invokes mvn manually,
he may be confronted with this error again.
plugin
maybe
【在 g**********y 的大作中提到】 : Usually, plugin expect those system parameters from command line. If plugin : writer wants, he can provide a way to configure through . : Unfortunately, Clover doesn't do that. : Your choice, either download clover source code and change it; or try the : newer version of Clover. Seems Clover is maintained by Atlassian now, maybe : they already have solution.
|
|