Maven - Use JDK 7 to Compile for JVM 5

后端 未结 5 1008
迷失自我
迷失自我 2021-01-02 02:19

I\'ve been trying to get this to work for a while now but no luck yet.

I want to run with JAVA_HOME pointing to JDK7 but I want to compile a project for

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 03:07

    To use multiple Jars in the Maven compiler options, use the ${path.separator} string between the jars:

    
       ${env.JAVA5_HOME}/jre/lib/rt.jar${path.separator}${env.JAVA5_HOME}/jre/lib/jce.jar${path.separator}${env.JAVA5_HOME}/jre/lib/jsse.jar
    
    

提交回复
热议问题