简体   繁体   中英

Is it possible to plug into maven artifact resolution

Problem:

I work on a project that has a lot of dependencies. The dependency versions are being pinned using a complex pom file hierarchy.

For a dependency ( say A ) that is currently pinned to version V_a, I want to have maven instead use another version V_b of that dependency.

Is it possible to do this in maven using some sort of a plugin that inserts itself into the maven artifact resolution phase, and changes the version of the artifact from V_a to V_b ?

如果您要使用其他版本,则只需将此具有不同版本的特定工件添加到pom中即可解决问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM