ASIDE: Please note that using properties is not the recommended way to pick different JDKs for building with.
The recommended way is to use ~/.m2/toolchains.xml to define where your different JDKs (and other toolchains) are located, and then use the maven-toolchains-plugin to call out the specific toolchain you want maven to use for compiling your project with, running your unit tests with, etc. However, if you are just playing around to grok maven, that's OK... as long as realise that the correct way for specifying toolchains is ~/.m2/toolchains.xml ;-) On 15 February 2012 15:37, sarmahdi <sarma...@hotmail.com> wrote: > Oliver: > > Did you mean that > > if i do > > *mvn compile -dexecutable=C:/glassfish3withjdk/jdk/bin/javac -dfork=true > -dsource=1.6 -dtarget=1.6 -dverbose=true > * > it will be like running the compile plugin with this configuration : > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.3.2</version> > <configuration> > /* <source>1.6</source> > <target>1.6</target> > <verbose>true</verbose> > <fork>true</fork>*/ > > > /*<executable>C:/glassfish3withjdk/jdk/bin/javac</executable>*/ > </configuration> > </plugin> > > > Thanks for answering tho. > > Syed... > > -- > View this message in context: > http://maven.40175.n5.nabble.com/what-does-define-do-in-maven-tp5485392p5486406.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org