Explain Maven’s POM Solving version problems with < exclusion > XML

Explain Maven's POM Solving version problems with < exclusion > XML

One advantage of using Maven to manage library dependencies is that it can be downloaded together with all the dependent jar files of the library, avoiding the trouble of adding manually. However, it also brings the problem that the same jar will be downloaded in different versions. Fortunately, in the POM configuration, < exclusion > is allowed to exclude some dependent jars that do not need to be downloaded at the same time.

For example, if struts core is configured, it will download javassist and ASM related jars at the same time, but the version is not new enough. In this case, they can be excluded:

If you have any questions, please leave a message or go to the community of this site for exchange and discussion. I hope this article can help you. Thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>