You're asking Maven to select a range of JAR versions with the brackets. It interprets the dash as the separator between two bounds (3.3.0 and 3346). Chuck the brackets.
Paul On Dec 12, 2007 12:44 AM, Stuart McCulloch <[EMAIL PROTECTED]> wrote: > On 12/12/2007, Saxena, Sandeep <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > I am using following dependency in one of my POMs: > > > > +++++++++++++++++++++++++++++++++++ > > <dependency> > > <groupId>org.eclipse</groupId> > > <artifactId>swt</artifactId> > > <version>[3.3.0-v3346]</version> > > </dependency> > > +++++++++++++++++++++++++++++++++++ > > > > And getting the following exceptions: > > > > ++++++++++++++++++++++++++++++++++++ > > Caused by: > > org.apache.maven.artifact.versioning.OverConstrainedVersionException: > > Couldn't find a version in [3.1.1, 3.2. > > 0, 3.3.0-v3346, 3.2.1-v3235e] to match range [3.3.0, 4.0.0) > > org.eclipse: swt: jar: null > > ++++++++++++++++++++++++++++++++++++ > > > > > > Any clues on this and how can it be resolved? > > > why not just use > > <version>3.3.0-v3346</version> > > if you only want this specific version? > > Regards, > > Sandeep. > > > > > > -- > Cheers, Stuart >
