Karo La Karo La - 7 months ago 44
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