简体   繁体   中英

Custom Maven Plugin - read maven-metadata.xml?

My custom maven plugin should cancel the build if the pom's version is already available within the distribution maven repo for performance reasons.

Is there any Maven APIs to query for repo metadata? I actually would like to read the latest tag from the maven-metadata.xml which lives on the server. Is there any easy "Maven way" to get this instead of doing your own HTTP GET request for maven-metadata.xml?

My argument: Maven is reading and writing this file for every deploy step. Is this available in a public API?

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