Friday, June 13, 2014

Force Maven Project to use JRE/JDK 7

The Issue

When I cloned the AngularJS Seed project from GitHub, and imported to eclipse, the project will use JRE 1.5.

The Solution

The problem is that pom.xml file did not provide the maven compile plugin.

Here is the update version of pom.xml



 4.0.0

 angularjs-maven-tomcat-seed
 angularjs-maven-tomcat-seed
 0.0.1-SNAPSHOT
 war


 
  
  
   
    
     org.apache.tomcat.maven
     tomcat7-maven-plugin
     2.2
    
   
  
  
  
   
    maven-compiler-plugin
    2.3.2
    
     
      default-testCompile
      test-compile
      
       testCompile
      
      
       1.7
       1.7
       UTF-8
      
     
     
      default-compile
      compile
      
       compile
      
      
       1.7
       1.7
       UTF-8
      
     
    
    
     1.7
     1.7
     UTF-8
    
   
   
    org.apache.tomcat.maven
    tomcat7-maven-plugin
    2.2