-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It's entirely possible that our inheritance mechanism isn't completely right on this...can you please file a JIRA issue, and I'll look at it when I have some slack time.
Thanks, - -john Peter van de Hoef wrote: > Hi all, > > I have a question about which elements of the POM are inherited by > derived POM's. > > In my parent POM I have a <build> section which specifies the source > directory and some parameters for the java compiler: > > <build> > <sourceDirectory>src</sourceDirectory> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>1.0-alpha-2-SNAPSHOT</version> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </build> > > In a derived POM, the source directoriy is different, so a new <build> > section is specified: > > <build> > <sourceDirectory>module/src</sourceDirectory> > </build> > > The overridden source directory is effectuated in this second POM, but > it appears that the java compiler settings have disappeared (it starts > e.g. complaining about JDK 1.4 features like assertions). If I do not > specify a <build> section in the derived POM, the settings of the base > POM are inherited. > > It appears that the <build> section is (completely) inherited if it is > not present in the derived POM, but if a <build> section is specified in > the derived POM, everything from the base POM is thrown away and only > the settings of the derived POM are used. > Is this correct? > > Thanks in advance. > Peter van de Hoef > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCbpDFK3h2CZwO/4URAiSnAJ9PEOiV+B3sG8oLg7dYQb/v8eSYHgCfYYdi jEQmZWa6JwLyEDZhSoYiw3E= =gP0+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
