maven provided scope

Posted by kamaci on Stack Overflow See other posts from Stack Overflow or by kamaci
Published on 2010-12-27T22:04:14Z Indexed on 2010/12/28 16:53 UTC
Read the original article Hit count: 270

Filed under:
|
<dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
</dependency>

I use that dependency import at my project's pom.xml. My question is I declared 2.5 as version. However does it important to write a lower version? For example I mean that if my project uses 3.0 version and I write that 2.5 will be provided? (I mean that let's accept that 2.5 is fine and my project works well, If I don't change anything else and just change 2.5 to 2.0 does it cause to an error?)

© Stack Overflow or respective owner

Related posts about dependencies

Related posts about maven