maven does not compile in java 1.6

后端 未结 3 1922
挽巷
挽巷 2020-12-22 03:45

how to force maven to compile 1.6 compatible source

i made web-app project with maven in eclipse. change web.xml to use 3.0 version -> then update configuration and

3条回答
  •  被撕碎了的回忆
    2020-12-22 04:34

    EDIT:

    Just use instead of 1.7 java 1.6.

    EDIT2:

    Your version:

    
        org.apache.maven.plugins
        maven-compiler-plugin
        
          1.7
          1.7
          true
          true
          ${env.JAVA_HOME_7}/bin/javac
          true
        
    
    

    Should be:

    
        org.apache.maven.plugins
        maven-compiler-plugin
        
          1.6
          1.6
          true
          true
          ${env.JAVA_HOME_7}/bin/javac
          true
        
    
    

提交回复
热议问题