Eclipse + Maven: force Execution Environment “JavaSE-1.6” instead of fixed JDK

后端 未结 3 912
刺人心
刺人心 2021-01-02 11:19

I\'m using Eclipse as IDE and Maven outside of it to keep all dependencies up to date and update the Eclipse-project as such. In Eclipse I usually specify the JRE system lib

3条回答
  •  轮回少年
    2021-01-02 12:14

    You can do it by setting a classpath container.

    
        org.apache.maven.plugins
        maven-eclipse-plugin
        2.8
        
            
               
        org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6
               
            
        
    
    

    Reference:

    • eclipse:eclipse Mojo > classpathContainers

提交回复
热议问题