gongshw 最近的时间轴更新
gongshw

gongshw

V2EX 第 72963 号会员,加入于 2014-09-04 23:06:31 +08:00
gongshw 最近回复了
@lchqfnu

pom.xml 中可以使用变量, 比如
<mainClass>${applicationMainClass}</mainClass>

然后执行命令是用 -D 传递变量参数:
maven install -DapplicationMainClass=com.example.MainClass1
maven install -DapplicationMainClass=com.example.MainClass2

细节还需要再打磨,比如生成的 jar 文件文件名应该也可以由参数决定
方案一:使用多个子模块

方案二:在 pom.xml 中使用变量,并在执行 maven 命令时传递
2018-03-19 19:20:18 +08:00
回复了 novaline 创建的主题 问与答 怎么把 qq 邮箱迁移到 gmail?
设置 -> 账户和导入 -> 查收其他帐号的邮件 -> 添加邮件帐号
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4568 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 01:07 · PVG 09:07 · LAX 18:07 · JFK 21:07
Developed with CodeLauncher
♥ Do have faith in what you're doing.