The only way to set the javac source/target options is to configure the maven-compiler-plugin.
A parent POM is simply a maven project file set as <packaging>pom that you inherit using <parent>. As this is a simple file, you may publish it under some open license and get it deployed on central. You may latter want to set some other global configuration in this POM. A typical usage is to have a common <dependencyManagement> to resolve some bad meta-datas in repo, like commons-logging that introduces some unexpected dependencies. As example, look at my http://platina.svn.sourceforge.net/svnroot/platina/trunk/pom.xml Nico. 2007/12/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi, > > since my projects usually use 1.5 syntax, I want do define this as the > default for all my projects. As I understand, it is possible to define > this in the POM of each project (which I definitely do not want). There is > also the possibility of inheriting from a parent POM: However, is it > possible to just define that my installation of maven 2 always uses Java > 1.5? > If this is not the case, and the solution is the use of a parent POM, > where would this parent POM should be placed? > > Or is there another preferred way of setting 1.5 as default? > > Regards > Marco > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
