In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the method of parsing configuration of Maven POM files". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The core file of the maven project is this pom file. When each project is created, there will be a pom.xml configuration file, which is the entry for maven configuration dependencies, plug-ins, project management and construction. All the configurations will be in this file, so it is necessary to understand the basic configuration of this file.
As shown in the following figure, a series of configuration items in the POM file are listed.
The following configurations are essential configuration items for POM files.
Let's talk about the most basic configuration items.
ModelVersion
The model version of maven, which follows the definition of maven, generally cannot be modified.
GroupId
The organization of the project is generally the top-level domain name + company or organization name, such as alibaba's project organization is com.alibaba, if your company's domain name is www.abc.com, then your project organization had better be named after com.abc.
ArtifactId
The name of the project is also an important symbol of the introduction of dependency between projects. For example, alibaba has a dubbo project, and the dubbo project may be associated with many subprojects, so artifactId defines projects such as dubbo and dubbo-config.
Version
The version of the project, the iterative development of the project, may go through many versions, and depending on this definition, the default is the packaged component, such as dubbo-2.8.4.jar. In addition, there are two concepts of version, such as 0.0.1-SNAPSHOT is the snapshot version, 0.0.1-RELEASE or without SNAPSHOT is the RELEASE version.
Packaging
Packaging types, there are several types: pom, jar, maven-plugin, ejb, war, ear, rar, par, default is jar package, generally commonly used are pom, jar, war.
Properties
Configure common properties, such as spring-web,spring-aop, you have to rely on these two, they must be the same version such as 4.5.0, you can put the version number on the properties for unified management, but also easy to maintain.
This is the end of the content of "what is the method of parsing configuration in Maven POM file". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.