Karo La Karo La - 3 months ago 14x
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.


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