当前位置:网站首页>Problems easily ignored by POM
Problems easily ignored by POM
2022-07-25 07:44:00 【Bald Knight】
distributionManagement: Configuration Management Used for packing
mvn install The project generated artifacts will be installed locally Maven Warehouse ,
mvn deploy Used to distribute project generated artifacts to remote Maven Warehouse .
Local Maven The components of the warehouse can only be used by the current user , On distribution to remote Maven After the warehouse , All users who have access to the repository can use your component .
We need to configure POM Of distributionManagement To specify the Maven The location of the distribution component , as follows :<project> ... <distributionManagement> <repository> <id>nexus-releases</id> <name>Nexus Release Repository</name> <url>http://127.0.0.1:8080/nexus/content/repositories/releases/</url> </repository> <!-- Mirror warehouse --> <snapshotRepository> <id>nexus-snapshots</id> <name>Nexus Snapshot Repository</name> <url>http://127.0.0.1:8080/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> ... </project>dependencyManagement: management Maven rely on
General parent module configuration , Sub modules import dependencies through inheritance or insertion .
Please refer to this article Dependency managementBasic configuration
<project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <!-- Model version --> <modelVersion>4.0.0</modelVersion> <!-- The sole mark of a company or organization , And the path generated during configuration is also generated from this , Such as com.companyname.project-group,maven It's going to be a project jar Package local path :/com/companyname/project-group --> <groupId>com.companyname.project-group</groupId> <!-- The only one in the project ID, One groupId There may be more than one project , Rely on artifactId Distinguishable --> <artifactId>project</artifactId> <!-- Version number --> <version>1.0</version> </project>
See this article for details [Maven POM](https://www.runoob.com/maven/maven-pom.html)
边栏推荐
- 【论文笔记】Next-ViT: Next Generation Vision Transformer for Efficient Deployment in Realistic Industrial
- VS2019 C# MFC安装
- Huawei wireless device sta black and white list configuration command
- Leetcode (Sword finger offer) - 04. search in two-dimensional array
- YUV player
- Network file storage system (II) practical operation of Minio distributed file system
- About gbase automatically closing the connection
- UNIPRO multi terminal deployment to meet customers' diversified needs
- P1086 [noip2004 popularization group question 2] peanut picking
- Cerebral cortex: the relationship between lifestyle and brain function in the elderly and its relationship with cognitive decline
猜你喜欢

A fast method of data set enhancement for deep learning

轮询、中断、DMA和通道

交叉熵计算公式

【论文笔记】EFFICIENT CNN ARCHITECTURE DESIGN GUIDED BY VISUALIZATION

New version 8.6 SEO quick release system (can be built at source level)
![[unity introduction program] basic concept - preform prefab](/img/c6/aac7bffdf99073978f9b2f8ff15fbb.png)
[unity introduction program] basic concept - preform prefab

Oracle19 adopts automatic memory management. The AWR report shows that the settings of SGA and PGA are too small?

The two Nobel Prize winners became the chief scientist of the sky high price Baijiu of "taishanglaojun holding a dream"

钉钉最新版,怎么清除登录手机号历史记录数据

cesium简介
随机推荐
Pads export Gerber file
【软件测试】包装简历从这几点出发、提升通过率
Huawei wireless device configuration wpa2-802.1x-aes security policy
使用CycleGAN训练自己制作的数据集,通俗教程,快速上手
【Unity入门计划】基本概念-2D刚体Rigidbody 2D
2-6.自动化采集
Robot Framework移动端自动化测试----01环境安装
【论文笔记】Next-ViT: Next Generation Vision Transformer for Efficient Deployment in Realistic Industrial
DJI push code (one code for one use, limited time push)
How does MTK change the boot logo?
A review of nature: gender differences in anxiety and depression - circuits and mechanisms
Talk about programmers learning English again
A fast method of data set enhancement for deep learning
Network file storage system (III) practice of fastdfs distributed file system
Oracle19 adopts automatic memory management. The AWR report shows that the settings of SGA and PGA are too small?
QT学习日记20——飞机大战项目
【Unity入门计划】基本概念-预制件 Prefab
Gather the wisdom of developers and consolidate the foundation of the database industry
Leetcode (Sword finger offer) - 04. search in two-dimensional array
Summer Challenge harmonyos - slider slider for custom components