In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what is the standard directory structure of Maven". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn what the Maven standard directory structure is like.
The directory structure of Maven is different from that of traditional projects. Here is the directory structure commonly found in a jar package.
Src/main/java: source code directory
Src/main/resources: resource file directory
Src/test/java: test code directory
Src/test/resources: test resource file directory
Here is only part of the structure, such as jar or war project if the source code is generally this structure, but this structure is not necessary, different projects with different requirements can also have different structures.
The following is the desired directory structure given by maven, and the maven project is created according to this structure using templates, so try to follow this specification.
Src/main/Java
Application/Library sources
Src/main/resources
Application/Library resources
Src/main/filters
Resource filter files
Src/main/assembly
Assembly descriptors
Src/main/config
Configuration files
Src/main/webapps
Web application sources
Src/test/java
Test sources
Src/test/resources
Test resources
Src/test/filters
Test resource filter files
Src/site
Site
LICENSE.txt
Project's license
README.txt
Project's readme
Let's look at the directory structure of a jar project.
One of the Maven dependencies is all dependent jar packages, the target directory is the temporary directory files generated by the package, including class files, test-related files, and generated jar packages, and the POM file is the core configuration file of the maven project.
At this point, I believe you have a deeper understanding of the "Maven standard directory structure", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.