<properties> <spring.version>3.0.5.RELEASE</spring.version> </properties>
and then use the ${} to set up the Maven JAR version number:
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> etc...
As you can see, this works especially well for Spring and is is obviously much better than setting them all individually...
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>3.0.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.0.5.RELEASE</version> </dependency> etc...
No comments:
Post a comment