[ http://jira.codehaus.org/browse/MIDEA-70?page=all ]

Dennis Lundberg closed MIDEA-70.
--------------------------------

    Resolution: Duplicate

> Idea Plugin does not handle any kind of Version ranges
> ------------------------------------------------------
>
>                 Key: MIDEA-70
>                 URL: http://jira.codehaus.org/browse/MIDEA-70
>             Project: Maven 2.x Idea Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Jan Thomae
>            Priority: Blocker
>
> I am using version ranges in my project.  For example, i have specified a 
> range for hibernate:
>         <dependency>
>             <groupId>org.hibernate</groupId>
>             <artifactId>hibernate</artifactId>
>             <version>[3.1.3,)</version>
>         </dependency>
> Now idea:idea tries to download 
> http://repo1.maven.org/maven2/org/hibernate/hibernate/[3.1.3,)/hibernate-[3.1.3,).pom
>  instead of recognizing that i have given a range and looking for an 
> appropriate version. Since it cannot resolve the dependency, it does not 
> create any dependencies for the module at all.
> Even worse, it crashes if any dependency uses version ranges. I could live 
> with the issue and stick to fixed versions for the time being, however i have 
> no control about the poms of the dependencies i am linking, so if a pom of a 
> dependency is containing a version range, i am totally out of luck. E.g one 
> of my modules references to  jasperreports:
> <dependency>
>             <groupId>jasperreports</groupId>
>             <artifactId>jasperreports</artifactId>
>             <version>1.2.7</version>
>         </dependency>
> which itself contains a ranged dependency. When i try to do idea:idea on that 
> one i get:
> INFO] Building TTT 2006 Reporting Plugin
> [INFO]    task-segment: [idea:idea]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Preparing idea:idea
> [INFO] No goals needed for project - skipping
> [INFO] [idea:idea]
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Unable to build project dependencies.

-- 
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

        

Reply via email to