You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Pavel Halas (JIRA)" <ji...@codehaus.org> on 2007/03/01 10:27:44 UTC

[jira] Commented: (MNG-2704) Range check don't work correct

    [ http://jira.codehaus.org/browse/MNG-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88893 ] 

Pavel Halas commented on MNG-2704:
----------------------------------

We got the same problem. Nicely seen when working with eclipse plugin which creates a dependency ranges.
Test case:
- Use eclipse:make-artifacts to place your eclipse 3.2 plugins into a repository.
- Do the same for eclipse 3.3 (M5 for example) plugins.
- Use the {{pom.xml}} like the one below.
- Run {{mvn dependency:resolve}}
- You will get "Missing: 1) org.eclipse.jface:org.eclipse.jface:jar:4.0.0"
{noformat}
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<groupId>group</groupId>
	<version>1.0-SNAPSHOT</version>
	<artifactId>Whatever</artifactId>
	<name>Whatever</name>
	<packaging>jar</packaging>

	<dependencies>
			<dependency>
				<groupId>org.eclipse.ui</groupId>
				<artifactId>org.eclipse.ui</artifactId>
				<version>3.2.1</version>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jface</groupId>
				<artifactId>org.eclipse.jface</artifactId>
				<version>3.2.1</version>
			</dependency>
	</dependencies>
</project>
{noformat}

> Range check don't work correct
> ------------------------------
>
>                 Key: MNG-2704
>                 URL: http://jira.codehaus.org/browse/MNG-2704
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.4
>         Environment: OS: Windows XP
> Java: jdk1.5.0_10
>            Reporter: Stephan Zehrer
>            Priority: Minor
>         Attachments: demo.zip
>
>
> I included the following part in my pom.xml:
> 		<dependency>
> 			<groupId>org.eclipse.jface</groupId>
> 			<artifactId>org.eclipse.jface</artifactId>
> 			<version>3.2.0</version>
> 		</dependency>	
> I always get the following error 
> No versions are present in the repository for the artifact with a range [3.2.0,4.0.0)
>   org.eclipse.equinox:org.eclipse.equinox.common:jar:null
> But I am sure that version 3.2.0 is available in the repository. 
> If I define only a dependency on this library like this
> 		<dependency>
> 			<groupId>org.eclipse.equinox</groupId>
> 			<artifactId>org.eclipse.equinox.common</artifactId>
> 			<version>3.2.0</version>
> 		</dependency>
> it works!
> If I define both it will not work. Why?
> According 
> http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
> It could be forced by this
> My current workaround is the exclusion definition.
> What did I wrong or is this a bug?
> See the demo I Attached, you need the Eclipse repository.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira