How to appoint specific jdk version for maven to build my project?

前端 未结 3 525
说谎
说谎 2020-12-12 04:33

My problem is: Test cases are green on local, but some are failed on hudson server because of non-supported jdk version. Local is ibm jdk1.6 sr4 windows, but hudson server i

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 05:01

    You can configure this in your maven-compiler-plugin

            
                org.apache.maven.plugins
                maven-compiler-plugin
                2.4
                
                    1.6
                    1.6
                
            
    

    You can also use profiles -P to set versions based on environments.

提交回复
热议问题