25
Apr

how to pass property values from command prompt

Generally pom.xml contains section to define project specific properties eg.

value hardcoded in pom.xml

we can pass “myproperty” value from command as follow:

mvn install “-Dmyproperty=new value”