I'm using a parent pom which establishes java version to 1.5. In my concrete project I use 1.6 so I was changing the compiler version in eclipse each time I did a Maven Update.
Looking for a solution to this I found some solutions involving overriding the behavior of the parent pom in the child one.
My question is if there are any differences between them and if so, which option should I use. The options I found (perhaps there are more) are:
- In properties tag:
<app.java.version>1.6</app.java.version>
- In properties tag:
<jdk.version>1.6</jdk.version>
- In configuration tag:
<source>${jdk.version}</source>
I'm very new to Maven. Thanks in advance.
Properties are just properties, which do not mean much unless you use them somewhere.
The important thing is that you set the version in the
maven-compiler-plugin
configuration: