1, MAVEN's main introduction:
MAVEN is an automated build tool maintained by the Apache Software Foundation that focuses on project building and dependency management for the Java platform.
Its function is mainly to cope with the following problems encountered in the actual development process:
A, if the project is very large, it is not appropriate to continue to use the package to partition the module. Preferably, each module corresponds to a project, which facilitates the Division of labor and Cooperation. with Maven, you can split a project into multiple projects.
b, the need for the project jar package must be manually "copy", "Paste" into the Web-inf/lib directory, the problem is that the same jar package files may be duplicated in different project projects, on the one hand waste storage space, in addition to make the project more bloated. with Maven, the jar package can only be stored in the "warehouse", there is a need to use the project "reference" the file interface, do not need to really copy the jar package.
C, the aspect of the jar package preparation, with the help of Maven can download the jar package in a canonical way. Because the jar packages of all well-known frameworks or third-party tools are stored in a central repository of MAVEN in a uniform specification. (if the jar package is downloaded in an irregular manner, then the content is probably not canonical.) )
D, a jar package depends on other jar packages that need to be manually added to the project. such as FileUpload components and IO components. Commons-fileupload-1.2.jar relies on Commons-io-2.0.1.jar. If the dependencies between all the jar packages require a very clear understanding of the programmer, then the learning cost will be greatly increased. with Maven, the dependent jar packages are automatically imported.
2, the concept of construction:
Take the "Java source file", "Schema Profile", "JSP", "HTML", "picture" and other resources as "raw materials", to "produce" a project can be run process. Including compiling, deploying, building three components. (That is, Dynamic Web engineering, compile, deploy-to-compile results)
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/95/9E/wKiom1kXu5az8UoyAAEkpUdHNQk194.png "title=" 00. PNG "alt=" Wkiom1kxu5az8uoyaaekpudhnqk194.png "/>
In the development process, all paths or classpath configured in the configuration file are standard with the directory structure of the editing results.
This article is from the "12392717" blog, please be sure to keep this source http://12402717.blog.51cto.com/12392717/1925429
Maven main introduction and the concept of building a word in Java EE