Our maven projects are based on Jenkins and then deploy artifacts to the maven repository.
For some reason, however, some kind of cache or update timeout is created when a project is created that has dependencies on other projects that have just been created.
Say that the error in artifacts A and B depends on A. Now I fix the error locally, update my dependencies in B, run B and everything is fine. I check, obviously. Now I build A on Jenkins, and then B. Then I get the newly built B and run it. There is still an error. In a few hours, if I build B again, he will kindly receive a new A, and the error will disappear.
So there should be a way to get jenkins to use new A on their server. using mvn -u or mvn --update-snapshots will not help. He will check for updates and not find them.
Pete
source share