Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method specified by the maven-compiler-plugin version

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what is the method specified by the maven-compiler-plugin version". In the daily operation, I believe that many people have doubts about what the method specified by the maven-compiler-plugin version is. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what is the method specified by the maven-compiler-plugin version?" Next, please follow the editor to study!

Maven-compiler-plugin version specification

Spring cloud micro-service that prompts you to generate and deploy JAR packages:

Maven-compiler-plugin: 3.8.1 cannot be compiled and requires jre instead of jdk.

1 add support for pom files

In general, it is OK to do this step, if you can not do the following steps.

2 Environment jdk/jre assignment

3 Java Build

4 pom file removal support

Usually the above three steps say yes, but if you can't compile when you build again, you can comment out the corresponding support.

Maven-compiler-plugin configuration JDK version

JDK1.5 is used by default in Maven3.x projects, which is obviously not what I want. Apache Maven Compiler Plugin can be used to configure the version of JDK used for compilation

Warehouse address

2.3.2 2.4 or above servlet 3.0 is supported.

I guess if you get rid of 2.3.2, you should use the latest version by default, so it's Servlet 3.1.

Used configuration

JDK1.7

Servlet 3.0

Kerduo org.apache.maven.plugins maven-compiler-plugin 2.3.2 1.7 1.7

JDK1.8

Servlet 3.1

Supplementary Notes for demo org.apache.maven.plugins maven-compiler-plugin 3.7.0 1.8 1.8

Maven-compiler-plugin: controls compilation (so the JDK version is set to this)

Spring-boot-maven-plugin is used for packaging

At this point, the study of "what is the method specified by the maven-compiler-plugin version" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report