Maven release plugin: specify java compiler version

前端 未结 4 1270
清酒与你
清酒与你 2020-12-30 05:01

I have this project made of multiple jars and war to make an ear. I build everything in snapshot and it works great. Then I made a release for every single project and saw t

4条回答
  •  别那么骄傲
    2020-12-30 05:38

    Just a note, if a wrong version is picked up, you will get an error something like

    xxxx is not supported in -source 1.5
    [ERROR] (use -source 7 or higher to enable yyyy)
    

    During maven release, maven release plugin (sets/defaults to) the compiler version 1.5. To ensure it picks up the correct version specify the properties.

    
     1.7
     1.7
    
    

提交回复
热议问题