Hi guys, thanks for the replies. I read up on parent/child POMs and now understand what I was doing (or wasn't in this case). So maybe I'll modify my intitial question, is there anyway to configure my environment (Mac OS X) to tell Maven I always want JDK 1.5? It'd be nice if it inferred this from my JAVA_HOME setting. Or is it just an accepted practice that every Maven project must be explicitly set to JDK 1.5 via the maven-compiler-plugin? Thanks again.
mikeottinger wrote: > > Hello, I'm trying to come up with a way such that new maven projects I > create are ready to use JDK 1.5 by inheritance from a super POM. I'm > having no luck, hence this post. I'm new to maven (thanks to this forum > for telling me maven defaults to jdk 1.3) so super POMs are a little > unfamiliar to me, from searching this forum I'm told that creating a > pom.xml in the parent directory of my project "somehow" does the trick. I > created one, added the plugin for maven-compiler-plugin, ran mvn install, > but I still get jdk compiling errors. Does anyone have any suggestions in > setting a jdk level globally for my environment? Are super POMs even the > way to go? I tend to create a lot of little projects for prototyping and > having to tell Maven I want jdk 1.5 for each of them is annoying. Thanks > in advance! > -- View this message in context: http://www.nabble.com/Adding-maven-compiler-plugin-to-super-POM-tp16851994s177p16897186.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
