简体   繁体   中英

How to pass the Maven profile name to batch file?

运行命令行脚本时,是否可以获得我们正在运行的当前Maven配置文件名称的名称?

when you are executing a bat file using maven-exec plugin , you can define in the bat file a call function to call the origin bat file along with arguments , or you can add arguments as defined below.

<arguments>
 <argument>8.8.8.8</argument>
 </arguments>

please refer to below answer in stackoverflow for more context :

Link1

Link2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM