Reputation: 1085
I want a dependency to be resolved with no version. Maven 3 is forcing me to use a version, I can't provide a version for the system scope jar I'm resolving. Thanks.
Upvotes: 0
Views: 1538
Reputation: 4418
You can use a system property define as below to resolve dependency.
<properties>
<org.springframework.version>3.0.5.RELEASE</org.springframework.version>
</properties>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework.version}</version>
</dependency>
You also have the option to provide Dependency Version Ranges. You might want to do is something like <version>[1.2.3,)</version>
Upvotes: 1