Value for this dep.version is ${prop.version} which will be resolved only at runtime. If we are using maven from command prompt, then we can run install goal like this
mvn install -Dprop.version=1.2
Maven will resolve the ${prop.version} using command line parameters.
I just to want to know how to pass this in Maven Embedder.
Actually using Configuration class we can set system properties. In this case System property get appended to JVM System property which will affect our multi threaded build process (Our build machine sit on top up of solaris box where only one JVM is running and build process is a multi threaded one) If a system property is added to JVM, then it will have an effect on all other threads which are simulatenously running)
Bookmarks