Of course, it is highly preferred to use profiles for this (esp. if you are setting the values based on the executing JDK).
Cheers, Brett On 9/21/05, David Pick <[EMAIL PROTECTED]> wrote: > > John, > > Many Thanks, that did the trick. > > Cheers > Dave > > -----Original Message----- > From: John Casey [mailto:[EMAIL PROTECTED] > Sent: 20 September 2005 16:22 > To: Maven Users List > Subject: Re: [m2-b1] POM Inheritance and Variables > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > System vars are accessed implicitly in m2...try: > > <configuration> > ~ <debug>${build.debug}</debug> > ~ <source>${build.jdk}</source> > ~ <target>${build.jdk}</target> > </configuration> > > Cheers, > > john > > David Pick wrote: > | Hi, > | > | I have the following section in a parent POM: > | > | <pluginManagement> > | <plugins> > | <plugin> > | <groupId>org.apache.maven.plugins</groupId> > | <artifactId>maven-compiler-plugin</artifactId> > | <configuration> > | <debug>${systemScope.getProperty('build.debug')}</debug> > | <source>${systemScope.getProperty('build.jdk')}</source> > | <target>${systemScope.getProperty('build.jdk')}</target> > | </configuration> > | </plugin> > | </plugins> > | </pluginManagement> > | > | > | When I run a Maven build on the child POM the system scope variables > appear to have no effect. > | If I replace them with fixed values then everything works. > | > | The system variables are set when invoking Maven using -D option. > | > | What have I done wrong? > | > | Does the fact that this inherited have any bearing on the property > evaluation? > | > | Many Thanks > | Dave > | > | --------------------------------------------------------------------- > | To unsubscribe, e-mail: [EMAIL PROTECTED] > | For additional commands, e-mail: [EMAIL PROTECTED] > | > | > | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFDMCksK3h2CZwO/4URAnjtAKCR9xO/PWerEM72jUXyapJpax04KQCfQfzR > dpkEVBR7Dwp/SaWGrB55M4w= > =L4D+ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
