如何在Maven中传递命令行参数?

huangapple 未分类评论51阅读模式
英文:

How to pass a command line argument in Maven?

问题

我正在使用Maven开发一个小的Java项目,所以我想要将(例如)/blabla/config.json作为命令行参数传递以读取信息,但我不知道如何操作。我认为也许可以使用属性,但我不太确定。

英文:

I'm developing a little Java project with Maven, so I want to pass (for example) /blabla/config.json as command line argument to read info but I don't know how. I think that maybe use properties but I'm not nothing sure.

huangapple
  • 本文由 发表于 2020年5月30日 04:35:48
  • 转载请务必保留本文链接:https://java.coder-hub.com/62094218.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定