Bug 291533 - When POM Properties used for "version", dependencies are not updated when they change
Summary: When POM Properties used for "version", dependencies are not updated when the...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IAM (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 16:30 EDT by Michael Mathers CLA
Modified: 2012-01-05 13:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mathers CLA 2009-10-06 16:30:42 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: 20090920-1017

If I use a "property" to for a dependency version when the property value is changed, IAM doesn't update dependencies.  It only does then when I edit the actual dependency itself.


  <properties>
    <camel-version>1.5.0</camel-version>
  </properties>
  
  <dependencies>
    <dependency>
      <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-core</artifactId>
        <version>${camel-version}</version>
      </dependency>
    </dependencies>

If I change the value of ${camel-version} property dependencies will not update.  I can only trigger an update by editing the actual <dependency> element.

Reproducible: Always

Steps to Reproduce:
1. Replace <version> with an a property as its value then save
2. Change the property value to another valid version
3. Save (no dependency update will occur)
Comment 1 Abel Muiño CLA 2009-10-08 09:00:44 EDT
If you clean the project from Eclipse. does the dependency get updated?
Comment 2 Michael Mathers CLA 2009-10-08 12:55:22 EDT
(In reply to comment #1)
> If you clean the project from Eclipse. does the dependency get updated?


No.  Neither does "Maven 2 --> Update Snapshot JARs/Reload Maven or executing a Goal.