intel radoux wrote: > Hello, > > Yes, I could use "maven.compiler.source" properties, but i'm on a parent > pom, and if somebody add a configuration like > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.3</version> > <configuration> > <source>xxx</source> > <target>xxx</target> > </configuration> > </plugin> > > on his module it will fail. > > I was wondering if there was some kind of auto-link between source level > in maven-compiler-plugin and toolchain plugin (it would be nice) > > Anyway, I will go with this solution and hope for the best (anyway I will > set the default jdk version to 1.5 so that if somebody update the source > level by itself (not by the maven.compiler.source if will fail hard :D )
Define the plugin configuration in the parent pom in a pluginMgmt section and use the proposed property. Someone who inherits the POM may simply redefine the property then. Cheers, Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
