Perhaps some other dependency wants another version? Try putting it back
without the brackets and run dependency:tree to see what you get.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2008 11:14 AM
To: users@maven.apache.org
Subject: Version Range Specification

Hi,

I've got a problem - one of my projects is using openlazlo 3.2 - which
stinks, as they MANUALLY changed dependencies, without any documentation
about this, and they don't even provide any maven poms :-(

However, we have to use it, and I am trying to get it to run using Maven
2.

For OpenLazlo, I manually created a pom and installed it into my local
repo. Along with other dependencies, it specifies:
<dependency>
        <groupId>commons-httpclient</groupId>
        <artifactId>commons-httpclient</artifactId>
        <version>2.0-rc1</version>
        <scope>runtime</scope>
</dependency>

For whatever reason, Maven 2.08 isn't very impressed by version 2.0-rc1,
and uses 3.0 instead. This however let's the openlazlo project fail. The
only configuration I was able to run was using version 2.0-rc1. 
So I read:
http://maven.apache.org/plugins/maven-enforcer-plugin/rules/versionRange
s.html

and accordingly changed the version to:[2.0-rc1].
Now Maven 2 is even more unhappy:
------------------
[INFO] Failed to resolve artifact.
No versions are present in the repository for the artifact with a range
[2.0-rc1,2.0-rc1]
  commons-httpclient:commons-httpclient:jar:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
...
------------------
But WHY? If you browse to: 
http://repo1.maven.org/maven2/commons-httpclient/commons-httpclient/2.0-
rc1/

You can see it's def. there!!!
Also, I've got this file in my local repository!!! :-(

Any idea whats wrong here?

Thanks in advance, your help rules! :-)

Cheers,

Stefanie
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!

http://games.entertainment.gmx.net/de/entertainment/games/free

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to