3
Following the step by step of the lesson 1.3 Introduction to Maven, we have the following code (replace square brackets for braquets):
[modelVersion]4.0.0[/modelVersion]
[groupId]com.algaworks[/groupId]
[artifactId]comecando-primefaces[/artifactId]
[version]0.0.1-SNAPSHOT[/version]
[packaging]war[/packaging]
[properties]
[project.buid.sourceEncoding]UTF-8[/project.buid.sourceEncoding]
[/properties]
[build]
[plugins]
[plugin]
[artifactId]maven-compiler-plugin[/artifactId]
[version]3.1[/version]
[configuration]
[source]1.8[/source]
[target]1.8[/target]
[/configuration]
[/plugin]
[/plugins]
[/build]
[/project]
The java version configuration is at 1.8. However, the official configuration is still 1.5. I have used Maven->Update Project->Ok
, which in the video went well, but in my eclipse not its right, continued 1.5.
In addition, the Eclipse points to an error on line 6 ([version]0.0.1-SNAPSHOT[/version]
). Force update of Maven did not solve the problem, contrary to what the teacher said in the video.
How to solve?
put the normal tags, so we can make a more fluid reading.
– user6406
Your eclipse must be forcing the compilation into 1.5 do this :
properties > java compiler > compiler complience level > 1.8
– Wellington Avelino