115 resources where to buy (Friends of the Wolf House)

[Ten Wei: PPS33A] [Quality guaranteed]

Chat with you quickly learn a Java project management tools: Maven

Color Chat author

A workhorse in the field of Java ape ape, blog garden blogger, budding writers. Big Data is currently engaged in project development work, has a wealth of experience in Java development projects. + Project has been involved in Internet innovation contest. We want to share their knowledge and experience, hope everyone to read plain article.

... More

 

Maven is an open source project written in Java and build management tools, is the most popular project management and build tools, as a Java developer, you should have a working knowledge point of Maven, Maven's grasp of the relevant operation. Chat this field you will gain knowledge of the following: What is Maven; Maven core concepts of analysis: dependency management and a key building; the relationship between the Maven repository concept, warehouse; Maven installation and configuration parsing; Maven used commands life cycle; idea Maven project to create a combat; idea Maven in debug jar packet priority and conflict management skills; Maven in split and polymerization ideas and concepts rely on inheritance and resolve; the company Maven PW installation and use; through this the Chat explain, so that we can quickly get started using Maven integration with Maven development team can build their own independent use Maven project development. Come and learn it! The current contents copyright code word science and technology and to authorize all show, pirated reserved.

 

Article body

* * Preface * Maven Introduction * What is Maven * Maven advantage * Maven dependency management and a key building * a key Maven dependency management * Maven build * between Maven repository concept and warehouse Relations * Warehouse Category Description * Warehouse * download mirror switch the order between depot * Maven installation and configuration parsing * download * Maven Maven Maven environment variable installation * configuration * configuration MAVEN_HOME * configure Maven's bin * test version of Maven Maven configuration file parsing * * localRepository * interactiveMode * offline * pluginGroups * proxies * servers * mirrors * profiles * activeProfiles * IDEA create Maven project real * IDEA configure Maven environment * IDEA create Maven project * POM file Maven project * POM file base configuration parsing * common configuration POM file * relationship summary * Maven lifecycle commonly used commands and common commands * * Maven Maven three life-cycle stages of the life cycle * * Maven command and lifecycle * IDEA Maven in debug jar packet priority and conflict resolution skills * company Maven installation and use PW * Nexus Introduction * Download Ma ven installation PW PW Nexus * Nexus * start * PW PW PW configuration file parsing * Login * interface to upload jar package from PW PW * * Download jar package summary

Foreword

Today to give us a Chat, we have to talk about Java project management tool Maven. Maven is the most popular Java integrated project management build automation tool. We quickly by Maven project build, manage jar package, developed to unify the team. Then we will give detailed analysis.

 

Here also recommended a few before I wrote Chat, if you're interested, then you can subscribe to look at, thank you.

 

Hands with you Fun framework of the integration of articles Spring Boot

Hands with you Fun Spring Boot

Java programmer interview must have! Offer help you prove safety

Redis taught you Fun

Spring Framework entry

Maven Introduction

What is Maven

Maven is the most popular Java integrated project management build automation tool. It contains a project object model, a set of standards, a project life cycle, a dependency management system, and means for defining a logical plug of the target operating life cycle phases.

 

Maven advantage

One advantage: ease of reference

 

When our previously developed, when you use a third-party jar package, you need to manually incorporated in, this will be a problem, you need to Baidu, Google and other search jar package you need, then download it, then add their own projects, and some jar package may be very hard to find. This time Maven solve this problem, the Maven repository stores almost all of the jar package, as long as the introduction of unique coordinate Maven, the project can use the jar package.

 

Two advantages: easy version of the unified management

 

When we different developers features such as they all use Spring to the relevant jar package, a developer may choose a version 4.X and 5.X alternative version, this time will result in the jar package version is not uniform, follow-up treatment can cause a lot of problems, this time, we use Maven can be centrally managed version.

 

Volume reduction projects: three advantages

 

jar package requires the use of traditional project are put into the project, resulting in a very large volume of the project, when we use Maven will jar packages are placed in the warehouse, you can greatly reduce the size of the project.

 

Four advantages: simplified operation command

 

When we develop complete, Maven can be ordered, to achieve a key building, a key package, one-click publishing, greatly simplifies the operation of developers.

 

Maven dependency management and a key Construction

Dependency management and build a bond with the key concept is the core of Maven, is described in detail below.

 

Maven dependency management

The first is the big key concepts Maven dependency management. The so-called dependency management is our project certainly is not a single, to refer to some of the jar or bag module. Tradition, we each project maintains its own dependence, conflicts, can not be unified. Maven will help us to do this thing, Maven pom.xml with its unique unified management to rely on, as long as we define good in the file, Maven will automatically help us sort out dependencies and import come. Maven dependency management can help us manage such aspects.

 

Dependent regulation: the decision when manually create multiple versions appear at the same time, which will depend on the version being used. If the two versions dependent on the depth of the dependency tree is the same time, dependent on the first to be declared it will be used.

Dependency management: direct a version of the specified manually created to be used. For example, when a C included in the project management module works its dependency B, that B is dependent on A, then A can be specified when the B version is referenced used.

Dependent exclusion: any dependency can be transmitted by exclusion elements are excluded. Illustration, A dependent B, B-dependent C, with C A may be marked as "excluded."

Optional dependent: any dependency that can be transmitted can be marked as an alternative, by using an optional element. For example: A dependent B, B-dependent C. Thus, B may be marked as optional C, so that it can no longer use C. A

Maven is a key building

First is about the concept of the software development process build. Construction of the project refers to the compile, test, run, packaging, installation and deployment of a series process.

 

In traditional development, we did go through a phase. After using Maven, we will have the entire build process to Maven to handle, use a command that allows Maven to automatically complete the whole process.

Guess you like

Origin www.cnblogs.com/jenixbsk/p/12160762.html