Go to maven3 common pom attributes and settings attributes

Source: Internet
Author: User
Tags version control system

Original article: http://blog.csdn.net/lgm277531070/article/details/6922645

A. Pom. xml attributes:

Project: The XML root element of POM.

Parent: declares inheritance.

Modules: Declares aggregation. This value is the relative directory of the current pom. Aggregation of user projects.

Groupid: defines the actual project to which the current Maven project belongs.

Artifactid: defines a Maven project module in the actual project, which is generally the actual project name.

Version: defines the current version of the maven project.

The three attributes groupid, artifactid, and version constitute the coordinates of the project. They must all be filled in.

Packaging: One of the coordinate elements, which can be left blank. If the default jar is left blank, the project is built into a jar package. If the value is war, the web project can be deployed.

Name: Name.

Description: project description.

Organization: the organization to which the cluster belongs.

Licenses: License.

MailingLists: Mail list.

Developers: developer.

Contributors: contributor.

Issuemanagement: Problem tracking system.

Cimanagement: continuous integration system.

SCM: version control system.

Prerequisites --> Maven: requires the lowest version of Maven. The default value is 2.0.

Build --> sourcedirectory: main source code directory.

Build --> scriptsourcedirectory: script source code directory.

Build --> testsourcedirectory: test source code directory.

Build --> outputdirectory: main source code output directory.

Build --> testoutputdirectory: test source code output directory.

Build --> resources --> Resource: main resource directory.

Build --> testresources --> testresource: Test Resource Directory.

Build --> finalname: name of the output main component.

Build --> directory: output directory.

Build --> filters --> filter: defines the resource filter attribute through the properties file.

Build --> extensions --> Extension: expands the core of Maven.

Build --> pluginmanagement: plug-in management.

Build --> plugins --> Plugin: plug-in.

Profiles --> profile: pom profile.

Distributionmanagement --> Repository: release version deployment repository.

Distributionmanagement --> snapshotrepository: the snapshot version deployment repository.

Distributionmanagement --> site: site deployment.

Repositories --> Repository: repository.

Pluginrepositories --> pluginrepository: plug-in repository.

Dependencies --> dependency: dependency management.

Properties: Maven property.

Reporting --> plugins: report plug-in.

A --> B indicates that element a is nested with Element B.

 

B. settings. xml file configuration.

Settings: the root element of settings. xml.

Localrepository: local repository.

Interactivemode: whether Maven interacts with users. The default value is true.

Offline: offline mode. The default value is false.

Plugingroups --> plugingroup: plug-in group.

Servers --> server: Download and deploy the authentication information of the repository.

Mirrors --> mirror: Repository image.

Proxies --> Proxy: proxy.

Profiles --> profile: settings profile.

Activeprofiles --> activeprofile: Activate profile.

The settings. XML in the conf folder under the maven directory is global, which affects the configuration of all users. We recommend that you modify settings. XML in the C: \ Users \ USERNAME \. m2 \ directory, which is local and only useful to users in the current directory.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.