Zatan maven related concepts (1)

1, Ant build

MyEclipse is the Eclipse and the default build tool is to use xml configuration file + building code implementation of the project ANTjava

build.xml is the ant build configuration files

Ant then integrated development kit (jar package)

Eclipse is a plug-in, save features and plugins directory in eclipse in

Several configuration file build.xml + jar package

 

Defects: Not suitable for engineering and project management resources relations

Engineering resources: jar package, folder, file

 

2, Maven build

Similar ant, project management, engineering do build, build a resource management tool for the job, project relationships

 

Construction of the project :

Compile, package, deploy

 

Work Resource Management:

Management jar, asking about the price, catalog, data

 

Project Management

Written a function, how to reuse? How to operate?

Management can be used again maven between engineering: dependence, inheritance, aggregation

Dependency: A B dependent engineering project, the project code B can be used.

Inheritance: A project inherit B project, you can use all the resources B project definition. Such as jar, file

Aggregation: A project engineering polymer B, B A project is a part of the project, in a similar internal class java

 

3, Maven repository

maven can be aided engineering resource management, resource is the most common jar

By building a tool to manage all the jar package, jar should be stored in what position?

 

In order to set up spoof apache server, save all the jar package, jar uploaded compiled by the development team

Application of the network may request the application be downloaded jar and

 

Applications are available for download in the download address and name of the only resource management, you can use the jar Sion tube

apache server to be built warehouse

 

Root warehouse:

Apache is to build a central repository, the default maven build a central warehouse tools

 

Mirror Warehouse:

Some central warehouse tripartite body build up of a local area network

aliyun mirrored built warehouse serving Chinese programmers

 

Local Warehouse:

Local computer in a directory, a cache is a local application

As long as local applications downloaded resources, both in the local backup repository

 

Repeatedly use the same resources, only the first visit back to the central repository and download

Subsequent use of all resources in the local warehouse, unless switched local repository directory

 

 

4, local configuration settings.xml

maven local profile: xml configuration file is a no route request and naming

 

Mirroring warehouse configuration uses liyun

 

 JDK standard

Guess you like

Origin www.cnblogs.com/Mrchengs/p/11499110.html