![maven install using different version of hava maven install using different version of hava](https://3.bp.blogspot.com/-zpNJCJMZjvo/WjP-jrkobfI/AAAAAAAABIM/5vC9sM7n8WI29FRII_Z9J8-oQfz0GZg6gCLcBGAs/w1200-h630-p-k-no-nu/maven-installation-directory-in-windows.png)
(Meaning, make sure that checkbox is checked, which it should already be.) (2) To emphasize what the Eclipse documentation says, if we turned off the Dynamic Web Module facet, we would not being able to “Run on Server” with this project.
![maven install using different version of hava maven install using different version of hava](https://i.stack.imgur.com/4J7SL.png)
(1) Make sure the Java facet is checked, and then change it’s version from 1.5 to 1.6. In the search text box on the top left, type “facet” and click Project Facets. Right click on the “hello-world-tomcat-webapp” and select Properties in the popup.
![maven install using different version of hava maven install using different version of hava](http://www.avajava.com/tutorials/maven/what-is-maven-and-how-do-i-install-it/what-is-maven-and-how-do-i-install-it-01.gif)
1.2 Setting Project Facet JRE VersionĪccording to the Eclipse documentation, “Facets define characteristics and requirements for Java EE projects and are used as part of the runtime configuration.” By adding a facet, we are editing the configuration of the project so it can do certain things. When we get to the second step of automatically setting the JRE version with Maven, then we’ll fix those errors we created. That’s okay, because if you were actually switching JRE versions manually, you’d have the awareness to set the versions to the same value. In this first step of manually setting the JRE version, we will actually set a different JRE version in 3 areas of the Project Properties on purpose, just for demonstration purposes to see what the error messages look like when the JRE versions don’t match. Since I only have JRE 1.8 set up in Eclipse right now, it actually gives me warnings about the version disparity: For me, Eclipse defaulted the JRE version to 1.5. We will start with the state of the project where we left off in the last article.
#Maven install using different version of hava how to
This article will build upon that, using it in demonstrating how to switch the JRE version for the project. In the last article, we stood up a Tomcat server, and deployed a hello world web application.