I put the following codes in the "build.properties" in %user.home%. It works now.
#compiler settings maven.compile.source=1.5 maven.compile.target=1.5 Martijn Dashorst wrote: > > http://maven.apache.org/maven-1.x/plugins/java/properties.html > > On Mon, Jul 21, 2008 at 11:46 AM, thomas2004 <[EMAIL PROTECTED]> > wrote: >> >> How and where can I set the compiler version? >> >> >> >> Martijn Dashorst wrote: >>> >>> make sure you set the compiler version correctly. The compiler plugin >>> defaults to java 1.3 >>> >>> Martijn >>> >>> On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 <[EMAIL PROTECTED]> >>> wrote: >>>> >>>> I have a java project built with Java5. Today as I rebuild the project >>>> with >>>> maven1 I got error. It doesn't recognize the generics. I doubt the >>>> maven1 >>>> doesn't work with Java5. Is it right? >>>> >>>> Regards >>>> >>>> Thomas >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.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] >>>> >>>> >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.4 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565311.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] >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565859.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]
