架构师_程序员_码农网

Retrieve password
Register

QQ登录

Just one step to get started

Search
架构师_程序员_码农网 " 架构师 ' Programming & Development ' Java ' Maven updatePolicy snapshot update policy
Views:11062|Replies: 0
打印 上一主题 下一主题

[Archive]Maven updatePolicy Snapshot Update Policy

[Copy link] Maven updatePolicy
跳转到指定楼层
owner of the building
发表于 2021-8-10 13:59:31| 看该作者回帖奖励|ReverseBrowse|Read Mode
1. Why is there a snapshot?

Before there were snapshots:

Project A relies on project B. B gives a new version number every time it changes, and then tells A that I've changed the version, and every time I change it, I have to tell it, and sometimes it's a problem if I forget.

It can be seen that no snapshot will bring "wasted version number", communication into a large increase in the problem.

With snapshots:

Project A depends on project B. Every time B changes, it will put a timestamp on it. When A compiles, it will check the timestamp of B. If the timestamp is later than the timestamp of B in the local repository, then it will be updated, otherwise, it will not be updated.

It can be seen that snapshots save the cost of communication, version number costs.

2, snapshot update strategy

Note that snapshots are not updated every time you install them, it depends on the update strategy; snapshot update strategy, there are daily update, always check for updates, never check for updates and customize the time interval update, the default is daily update which means that it is updated once a day, if you want to update it all the time, you can configure it in settings.xml. For example:

(always, daily (default, daily), interval: X (where X is the interval in minutes), or never))

You can also force updates with the command, mvn clean install -U





Previous: Spring Cloud Filter through the ContentCachingRequestWrapper get request content
Next: NET/C# features of the CallerMemberName, CallerFilePath, CallerLineNumber
Code farmer network, only published in the practice process, encountered technical difficulties, not mislead others.
You need to log in before you can post back Log in | Register

This version of the integral rules

DISCLAIMER:
All software, programming materials or articles published by Code Farmer are limited to be used for learning and research purposes only; the above contents shall not be used for commercial or illegal purposes, otherwise, all the consequences shall be borne by the users themselves. This site information from the network, copyright dispute has nothing to do with this site. You must completely remove the above content from your computer within 24 hours of downloading. If you like the program, please support the genuine software, buy registration and get better genuine service. If there is any infringement, please contact us by email to deal with it.

Mail To:help@itsvse.com

QQ| ( ICP备14021824号-2 )|Sitemap

GMT+8, 2024-9-19 02:27

Quick ReplyBack to topBack to list