开发者

Problems passing system properties using maven 3.0.1

I'm using maven 3.0.1 in ubuntu 10.10, I'm trying to do:

export JAVA_OPTS="-Dfoo=bar"
mvn clean install

And my build does not work. However, when I do

mvn clean install -Dfoo=bar

It works开发者_JS百科.

Does anyone have any idea why this happens?


Maven doesn't use JAVA_OPTS but uses MAVEN_OPTS for the same purpose.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜