简体   繁体   中英

Can we build java application through build plagin of maven without installing local JDK

Can we build java web app through build plagin of maven without installing local JDK.

As we all know that we have plugins in POM.xml and maven is using them for different steps, So my question is that is it possible that I write java code with POM.xml file and then add build/compile plugins to that POM.xml file and then compile this code only through maven plugin instead of installing jdk locally?

If this is not possible then what is purpose of adding build and compile plugins to POM file?

The short answer, as @khmarbaise mentioned, is no. Building java applications without jdk is not an option.

Maven plugins solve issues, depending on the plugin they may move things, generate code or do similar things to make the real build possible. They do not in any way replace a jdk tho.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM