My project is a multi-module maven/IDEA project. One of the modules has a dependency on a locally deployed artifact where the current version is xrite-colorlib-api-1.1. I want to specify 1.1 as the minimum version as that version has what I need but subsequent versions are likely to be okay as well. Using set notation works well for install/deploy/release goals and must not cause failures for the idea goal.
When I ran the idea goal here is what I found: - The main module that had a dependency on xrite-colorlib-api (using [1.1,) did not work at all. I.e. it made the IDEA module but it had none of it's dependencies. - At least one other module that had a build dependency on the prior module, had a dependency on xrite-colorlib-api-1.2-SNAPSHOT which is a bogus version. No snapshot of this artifact exists. In any case, it should not choose to use a snapshot when a released version is specified. As to your question of if it should reach out to the defined repos and use the most up-to-date version; I would think this would be ideal (if not required). I think the rule should be that it should create IDEA projects that are exactly equivalent to what maven would use/build if I ran the install goal for example. How else could developers, using maven to generate IDEA projects, ever stay in sync with what maven is building? -dh -----Original Message----- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 10:12 PM To: Maven Users List Subject: Re: [m2.0.4] Possible bug in idea plugin? What exactly happens when you use [1.1,)? Do you get an error message and it fails to build the IDEA project file (*.ipr iirc), or the file is built but the dependencies are wrong, or what exactly is the result and how is it different from what you'd expect? To properly decide if this is really a bug, we'll probably need more of these kinds of details, and you'll certainly need to provide them if you decide to file a real bug report in JIRA. And assuming it is simply a bug in the plugin, what do you expect the plugin to do? Simply use the minimum version specified (in this case 1.1) or reach out to the defined repos, find the most recent version number, and use it? Wayne On 5/31/06, Dave Hoffer <[EMAIL PROTECTED]> wrote: > When I run idea:idea on my pom file it does not correctly handle > dependencies that use set notation to specify the required version, i.e. > [1.1,). If I change to 1.1 it works just fine. I have tried the new > 2.0 IDEA plugin and it didn't make any difference. > > > > Am I doing something wrong or is this a bug? > > > > -dh > > > --------------------------------------------------------------------- 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]