I know when provided scope define for any maven dependency ,it will provided by web server or runtime environment. But not sure how version can help here.
Take an example
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.6.4</version>
<scope>provided</scope>
</dependency>
In compile, it will use eclipselink version 2.6.4 but in runtime what will be it? Is it solely depends on the provider of the dependency while bundling it or it will depend on any other factor?
If it solely depends on the provider then what is the purpose of defining the version in provided scope? Or while defining provided scope version we should be cognizant of web server bundle version?