Karo La Karo La - 1 year ago 202
Java Question

How to pass parameters to maven build using pom.xml?

I wanted pass maven command line parameter to POM.xml so that i can use those value for some other purpose in building purpose.

Answer Source

If we have parameter like below in our POM XML


I run maven command line as follows :

mvn clean install package -Dproject.version=10 -Dsvn.version=1
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download