由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - how to set a System Property for a maven plugin??
相关主题
谁能比较一下ant和maven的有点缺点?Java搞图像分析还是不成气候啊
sbt很不错Vert.x 应该没戏了吧?
请问关于eclipse plugin和maven的问题【unix下面的GUI编程大家都用什么语言】 (转载)
现在myeclipse add/remove software里面scala下一代compiler dotty
请问text版linux怎样加装xwindows/GUIRe: How to write this makefile?
pls recommend a tool for group discussion (转载)问一个MinGW + CMake 的问题
Amazon 选组求教makefile question
Zhaoce你能不能别一直说别人是猴子?Makefile疑问
相关话题的讨论汇总
话题: plugin话题: property话题: system话题: clover话题: maven
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
Makefile疑问请问text版linux怎样加装xwindows/GUI
c++ compiler under unixpls recommend a tool for group discussion (转载)
Questions about MAKEFILEAmazon 选组求教
make dist 是什么命令阿,能否举个例子Zhaoce你能不能别一直说别人是猴子?
谁能比较一下ant和maven的有点缺点?Java搞图像分析还是不成气候啊
sbt很不错Vert.x 应该没戏了吧?
请问关于eclipse plugin和maven的问题【unix下面的GUI编程大家都用什么语言】 (转载)
现在myeclipse add/remove software里面scala下一代compiler dotty
相关话题的讨论汇总
话题: plugin话题: property话题: system话题: clover话题: maven