The default compliance level for Maven is 1.5 and every time that I update a maven project in Eclipse it sets back the compliance level from 1.6 to 1.5 which is really annoy
I know that I can set the target to 1.6 in pom file but the problem is that I cannot set this in the parent pom and expect the children to inherit it.
Setting the and version in the parent pom does work.
For example, in my parent pom, I have:
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.6
1.6
UTF-8
If you are having problems, you might want to check that:
source and target values;mvn install on the parent; andmvn help:effective-pom on the child project shows the expected source/target values.After modifying the poms, you may need to select both projects and use Maven->Update Project.