سؤال

I'm trying to get the Java 'getting started' app to work and I noticed this in the POM:

<dependency>
    <groupId>com.saucelabs</groupId>
    <artifactId>sauce_testng</artifactId>
    <version>[1.0.0,)</version>
    <scope>test</scope>
</dependency>

<version>[1.0.0,)</version>

Is this right? Could it be accounting for the problems I'm having in this question ?

هل كانت مفيدة؟

المحلول

The syntax is fine as per Version Range Specification of maven.

[1.0.0,) means a version x where x >= 1.0.0

Default strategy: Of the overlapping ranges, the highest soft requirement is the version to be used. If there are no soft requirements inside the prescribed ranges, the most recent version is used. If that does not fit the described ranges, then the most recent version number in the prescribed ranges is used. If the ranges exclude all versions, an error occurs.

نصائح أخرى

Yep, as per Nishant's answer, we included the version range so that when new versions of the sauce_testng library are released, they are included automatically when a new build is run.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top