vaadin / cdi

CDI Integration for Vaadin
Apache License 2.0
41 stars 56 forks source link

test: resolve web archive dependencies all together #455

Closed mcollovati closed 7 months ago

mcollovati commented 7 months ago

Resolving dependency one by one may cause failures if artifacts have transitive dependency to other libraries but in different versions. In this case, resolution fails because the resolver is working offline, but only the winning dependency from effective pom is actually downloaded on CI server. For example, if flow-server has a transitive dependency to library X at version 1 and flow-polymer-template defines it at version 2, then version 2 is downloaded. However, when resolving flow-server alone the resolver wants to download version 1 since it has no knowledge of version 2, but version 1 potentially has not been previously downloaded. Resolving all dependencies together resolves the issue, since the correct version of the transitive dependencies are computed.