Hi i need to declare a provided dependency in maven which can be more versions.
For example it can be v1.3 or v1.4 or v1.5.
How can I declare/represent multiple versions in a single notation ?
Hi i need to declare a provided dependency in maven which can be more versions.
For example it can be v1.3 or v1.4 or v1.5.
How can I declare/represent multiple versions in a single notation ?
 
    
     
    
    Maven supports dependency range, this worked for me
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>[4.9,4.10]</version>
    </dependency>
it chooses highest available
 
    
    In maven you should always use version element for example:
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>17.0</version>
</dependency>
If you want to use latest version of some plugin you should read this question answer How do I tell Maven to use the latest version of a dependency?.
 
    
     
    
    Use v1.3 and above
or you can write v1.*
Regards!
