Thanks Olivier, I am using JDK 1.8 for development and shall I change source and target to 1.8? I think the most popular version of Java are 1.7 or 1.8, not sure why Maven makes 1.5 as default?
regards, Lin On Sun, Mar 29, 2015 at 10:53 PM, Olivier Lamy <ol...@apache.org> wrote: > On 30 March 2015 at 16:46, Lin Ma <lin...@gmail.com> wrote: > > > Hello Maven masters, > > > > For maven-compiler-plugin(a sample below), have a quick question. I read > > this document (http://maven.apache.org/plugins/maven-compiler-plugin/), > > and > > confused what means source and target 1.5 here, it seems it is an > internal > > version number of Maven, independent of JDK? > > > > No. You should read here > > http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#source > . > Linked to > > http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html#options > see source and target options > > HTH > Olivier > > > > > > > <plugin> > > <artifactId>maven-compiler-plugin</artifactId> > > <version>2.3.2</version> > > <configuration> > > <source>1.5</source> > > <target>1.5</target> > > </configuration> > > </plugin> > > > > thanks in advance, > > Lin > > > > > > -- > Olivier Lamy > http://twitter.com/olamy | http://linkedin.com/in/olamy >